Chat · Components
AssistantChoiceCards
No summary has been written for AssistantChoiceCards. Everything below is generated from the declaration shipped in 0.57.40 and describes the real contract.Public export
typescript
import { AssistantChoiceCards } from '@happyvertical/smrt-chat/svelte';- Import path
@happyvertical/smrt-chat/svelte- Props
- 6
- Props described
- 6 of 6
- Bindable state
- 0
- Callback events
- 5
- Verified release
- 0.57.40
Props
NameTypeRequiredDescription
choicesAssistantChoiceSet[]YesThe controller's `choices` (dismissed sets are hidden).onchoose(setId: string, optionId: string) => voidYesThe person picked an option (`controller.chooseOption`).ondismiss(setId: string) => voidYesThe person wants none of them (`controller.dismissChoices`).onpreview(setId: string, optionId: string) => voidNoPreview a card of a previewable set in place (`controller.previewOption`).oncommit(setId: string) => voidNoApply the previewed card (`controller.commitOption`).oncancel(setId: string) => voidNoRestore the original and close the set (`controller.cancelChoices`).Bindable state
This component has no bindable public state.
Callback events
onchoose(setId: string, optionId: string) => voidondismiss(setId: string) => voidonpreview(setId: string, optionId: string) => voidoncommit(setId: string) => voidoncancel(setId: string) => void