UNPKG

carbon-react

Version:

A library of reusable React components for easily building user interfaces.

24 lines (23 loc) 979 B
import React from "react"; import { MarginProps } from "styled-system"; import { TagProps } from "../../__internal__/utils/helpers/tags"; export interface DraggableContainerProps extends MarginProps, TagProps { /** Callback fired when an item is successfully dropped. */ getOrder?: (draggableItemIds?: (string | number | undefined)[], movedItemId?: string | number | undefined) => void; /** * The content of the component * * `<DraggableItem />` is required to make `Draggable` works */ children?: React.ReactNode; /** * Defines the direction in which the draggable items contents are placed. * Can be either "row" or "row-reverse". */ flexDirection?: "row" | "row-reverse"; } declare const DraggableContainer: { ({ "data-element": dataElement, "data-role": dataRole, children, getOrder, flexDirection, ...rest }: DraggableContainerProps): JSX.Element; displayName: string; }; export default DraggableContainer;