# Items

You can [disable](https://www.telerik.com/kendo-react-ui/components/sortable/items#disabling-items) and provide an [item](https://www.telerik.com/kendo-react-ui/components/sortable/items#using-the-item-component) or an [empty item](https://www.telerik.com/kendo-react-ui/components/sortable/items#using-the-empty-item-component) component when you render the items of the Sortable component.

## Disabling Items

To disable the items of the Sortable, define its [`disabledField`](https://www.telerik.com/kendo-react-ui/components/sortable/api/sortableprops) property.

[Demo Source](https://demos.telerik.com/kendo-react-ui/sortable/disabled/func/source.txt)

## Using the Item Component

The component that you pass to [`itemUI`](https://www.telerik.com/kendo-react-ui/components/sortable/api/sortableprops#itemUI) receives [`SortableItemUIProps`](https://www.telerik.com/kendo-react-ui/components/sortable/api/sortableitemuiprops) as its properties. When you implement the item component, pass the following props to the first element child:

* [`attributes`](https://www.telerik.com/kendo-react-ui/components/sortable/api/sortableitemuiprops#attributes)
* [`forwardRef`](https://www.telerik.com/kendo-react-ui/components/sortable/api/sortableitemuiprops#forwardRef)
* [`style`](https://www.telerik.com/kendo-react-ui/components/sortable/api/sortableitemuiprops#style)

```jsx
const SortableItemUI = (props) => {
    const { style, attributes, forwardRef, dataItem } = props;

    return (
        <div
            // The Sortable needs these three on the root element to track and position the item.
            {...attributes}
            ref={forwardRef}
            style={{
                ...style
            }}
        >
            {dataItem.text}
        </div>
    );
};
```

## Using the Empty Item Component

The component that you pass to [`emptyItemUI`](https://www.telerik.com/kendo-react-ui/components/sortable/api/sortableprops#emptyitemui) receives [`SortableEmptyItemUIProps`](https://www.telerik.com/kendo-react-ui/components/sortable/api/sortableemptyitemuiprops) as its properties. The empty item component will be rendered when the data of the Sortable is empty.

```jsx
const SortableEmptyItemUI = (props: SortableEmptyItemUIProps) => {
    const { message } = props;

    return <div>{message}</div>;
};
```

## Suggested Links

* [API Reference of the Sortable](https://www.telerik.com/kendo-react-ui/components/sortable/api)
