- React

## Examples

### Basic

### Compact

### Checkboxes, actions and additional cells

### Actions: single and multiple

### Expandable

### Mixed expandable

### Width modifiers

### Clickable rows

### Controlling text

### Draggable

To enable drag and drop, wrap the `<DataList>` component with `<DragDropSort>`, define the `variant` property as “DataList”, and pass both the sortable items and `onDrop` callback to `<DragDropSort>`. `<DragDropSort>` will create the component’s usual children internally based on the items property, so children should not be passed to the wrapped component.

Full drag and drop details can be found on the drag and drop component page.

### Draggable with multiple drop zones

To enable multiple drop zones, and create the desired amount of `<Droppable>` components within a `<DragDropContainer>`.

Each `<Droppable>` should define the `wrapper` property as the component that acts as the drop zone, `<DataList>`, and the `items` property of their respective draggable items as an array of `<DraggableObject>` data. `<DragDropContainer>` should be passed the `onDrop`, `onContainerMove`, and `onCancel` callbacks to handle items being dropped, items moving between droppable containers, and what happens if the drag is cancelled respectively. `<DragDropContainer>` should also be given a `Record` representing all sortable drop zones’ items. Both components should define the `variant` property as “DataList”.

Full drag and drop details can be found on the drag and drop component page.

### Small grid breakpoint

##
CSS variables