UNPKG

carbon-react

Version:

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

26 lines (25 loc) 807 B
import React from "react"; import { PaddingProps } from "styled-system"; import { TagProps } from "../../../__internal__/utils/helpers/tags"; export interface DraggableItemProps extends PaddingProps, TagProps { /** * The id of the `DraggableItem`. * * Use this prop to make `Draggable` work */ id: number | string; /** The content of the component. */ children: React.ReactNode; /** @private @ignore */ index?: number; /** * @private * @ignore */ flexDirection?: "row" | "row-reverse"; } declare const DraggableItem: { ({ id: idProp, index: indexProp, children, py, flexDirection, "data-element": dataElement, "data-role": dataRole, ...rest }: DraggableItemProps): JSX.Element; displayName: string; }; export default DraggableItem;