SukiAssistant
The Assistant UI component that displays the Suki Assistant interface.
Prop | Type | Required | Default | Description |
---|---|---|---|---|
ambientOptions | AmbientOptions | - | - | Configuration options for ambient session functionality |
encounter | Encounter | ✓ | - | The encounter data to pre-populate the SDK |
onClose | () => void | - | - | Callback function called when the SDK is closed. Only available when uiOptions.showCloseButton is not false |
onNoteSubmit | (data: EmitterEvents ["note-submission:success"]) => void | - | - | Callback function called when a note is submitted |
uiOptions | UIOptions | - | - | UI configuration options for the SDK |
The SukiAssistant
component uses conditional typing to ensure type safety based on the showCloseButton
configuration:
uiOptions.showCloseButton
is false
, the onClose
prop is not availableuiOptions.showCloseButton
is true
or undefined, the onClose
prop is optional