Suggestions
import { Suggestions, SUGGESTIONS } from '@hanzo/ui/agents'
Default
V2's three asks; a chip sends its words, the × puts the row away.
export function Default() {const [shown, setShown] = useState(true)return shown ? <Suggestions items={SUGGESTIONS} onPick={() => {}} onDismiss={() => setShown(false)} /> : null}
Types
export interface SuggestionsProps extends Row {items: readonly string[]onPick: (item: string) => void/** Omit and the row cannot be dismissed. */onDismiss?: () => void/** The group's accessible name. */label?: string}
Exports
SuggestionsSUGGESTIONStype SuggestionsProps