Inputs and selection
Switch
Available forNativeWeb
settings on/off
Usage
Settings-style on/off. For an action, use Toggle instead.
API
<Switch checked onCheckedChange />Get it
Already in every copy of the native kit:
import { Switch } from '@/components/ui/switch';Details
- Exports
Switch- Packages
- @rn-primitives/switch@^1.5.2
- Installs with
- @kit-native/label, @kit-native/lib-utils
- Also searched as
- toggle, on off
- Registry JSON
- /r/native/switch.json
API
<Switch id checked onCheckedChange />Get it
Already in every copy of the web kit:
import { Switch } from '@/components/ui/switch';Details
- Exports
Switch- Upstream
- Unchanged from shadcn/ui; installs from their registry.
Agents: the whole registry is at /llms.txt.