SuggestionsProps
Unpublished development API. This package is under development and is not available as a published release.
Configures a controlled group without owning draft or submission state.
import type { SuggestionsProps } from '@threadplane/react/chat';Declaration
export interface SuggestionsProps {
readonly className?: string;
readonly disabled?: boolean;
readonly label?: string;
readonly onSelect: (value: string) => void;
readonly suggestions: readonly SuggestionItem[];
}Members
className
Additional classes on the group.
readonly className?: string;disabled
Disables all items only when strictly true.
readonly disabled?: boolean;label
Accessible group label, defaulting to Suggested replies.
readonly label?: string;onSelect
Receives the exact value on an enabled, unclaimed click.
readonly onSelect: (value: string) => void;suggestions
Caller-authored items; duplicate IDs throw TypeError.
readonly suggestions: readonly SuggestionItem[];