Device Badge
- from @localmode
- by LocalMode
A local-first capability badge. Detects WebGPU / WASM / IndexedDB support via a bundled useCapabilities() hook (copy-owned, reads navigator — no @localmode dependency) and renders a themed status pill. Use it to gate model-download UIs behind device support.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @localmode/ui/local-first/device-badgeLive preview
No live preview has been built for this component yet.
Registry dependencies2
- @localmode/ui/lib/utils
- @localmode/ui/lib/use-environment
Packages0
No npm packages are installed with it.
