Svelte · Browser Ai
ModelStatusControl
Model status control. Presents ONE inference backend's model lifecycle to a user: whether it is loaded, a way to load or release it, and live download progress. Driven entirely by the backend's own `status`/`progress`/`subscribe` surface, so it works anywhere — a shell dock, a settings panel, or a workbench that has no `<Provider>` ancestor.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.62.10
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