Skip to content

@sqlrooms/ai-core / ChatSuggestionsRootProps

Type Alias: ChatSuggestionsRootProps

ChatSuggestionsRootProps = ComponentPropsWithoutRef<"div"> & object

Props for Root.

Type Declaration

NameTypeDescription
asChild?booleanRender as the single child element instead of a <div>, via Radix's Slot.
open?booleanOverrides the store's visibility state when provided. Use this when a host's own popover, dropdown, or overlay already owns open/closed state and suggestions visibility should simply follow it, rather than maintaining a second, possibly-disagreeing visibility flag. Pair with onOpenChange: while controlled, Dismiss and VisibilityToggle inside this root report through it instead of writing the store this prop overrides.
onOpenChange()?(open) => voidCalled by the visibility controls inside this root while open is provided. Ignored when uncontrolled, where those controls write the normalized store directly.