Skip to content

@sqlrooms/ai-core / ChatComposerDropTargetProps

Type Alias: ChatComposerDropTargetProps

ChatComposerDropTargetProps = ComponentPropsWithoutRef<"div"> & object

Props for DropTarget.

Type Declaration

NameTypeDescription
asChild?booleanRender as the single child element instead of a <div>, via Radix's Slot.
idstringA dnd-kit droppable id, unique within the surrounding dnd-kit context.
canAccept()(data) => booleanWhether the item currently being dragged may be dropped here.
onDrop()(data) => voidCalled with the dragged item's data when an accepted drop lands.