useClientCapabilities
HookDetects client-side capabilities: whether the app is hydrated (isClient), and whether the device has a camera (hasCamera). Also exports useHasCamera and useMounted individually.
core/use-client-capabilitiesInstallation
1 · Add registry to components.json
2 · Install component
Examples
Capability grid
Checks client, camera, share, and geolocation support.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
(returns) isClient | boolean | — | True after client-side hydration. |
(returns) hasCamera | boolean | — | True if getUserMedia is available. |