useClientCapabilities

Hook

Detects 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-capabilities

Installation

1 · Add registry to components.json

2 · Install component

Examples

Capability grid

Checks client, camera, share, and geolocation support.

API Reference

PropTypeDescription
(returns) isClient
booleanTrue after client-side hydration.
(returns) hasCamera
booleanTrue if getUserMedia is available.