s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Svelte · Browser Ai

ModelStatusControl

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

Public export

typescript
import { ModelStatusControl } from '@happyvertical/smrt-svelte/browser-ai/svelte';
Import path
@happyvertical/smrt-svelte/browser-ai/svelte
Props
5
Props described
5 of 5
Bindable state
0
Callback events
1
Verified release
0.57.40

Props

NameTypeRequiredDescription
backendInferenceBackendYesThe backend whose model lifecycle this control presents.
labelstringNoHuman label for the model, e.g. "On-device model".
allowUnloadbooleanNoOffer a release action once the model is ready.
classstringNoExtra class(es) for layout in a host.
onerror(error: Error) => voidNoCalled when a load or unload rejects (also rendered inline).

Bindable state

This component has no bindable public state.

Callback events

  • onerror(error: Error) => void

Examples and explanation