smrt
Open the smrt source on GitHub Switch to dark color scheme
← All UI components

Svelte · Connect Ai

ConnectAi

No summary has been written for ConnectAi. Everything below is generated from the declaration shipped in 0.62.10 and describes the real contract.

Public export

typescript
import { ConnectAi } from '@happyvertical/smrt-svelte/connect-ai';
Import path
@happyvertical/smrt-svelte/connect-ai
Props
8
Props described
8 of 8
Bindable state
0
Callback events
1
Verified release
0.62.10

Props

NameTypeRequiredDescription
clientConnectAiClientYesAuthenticated transport, usually createConnectAiClient. No provider clients in the browser.
apiKeyHrefstringYesHost's existing inference settings/key form, shared with advanced settings.
variant'onboarding' | 'settings'NoOnboarding and settings share exactly the same engine policy.
initialStateConnectAiStateNoOptional server-loaded snapshot, refreshed on mount and browser focus.
onchange(state: ConnectAiState, ready: boolean) => voidNoReports readiness so an onboarding host can enable its next step.
pollMsnumberNoSign-in polling interval; defaults to 2.5 seconds.
presentation'compact'NoCompact saved-product wording/grouping; defaults stay unchanged.
headingIdstringNoParent step heading. Reuses its name instead of rendering a second heading.

Bindable state

This component has no bindable public state.

Callback events

  • onchange(state: ConnectAiState, ready: boolean) => void

Examples and explanation