Actions
Toggle
Available forNativeWeb
pressed two-state button
API
<Toggle pressed onPressedChange><ToggleIcon as={…} /></Toggle>Get it
Already in every copy of the native kit:
import { Toggle } from '@/components/ui/toggle';Details
- Exports
Toggle- Packages
- @rn-primitives/toggle@^1.5.2, class-variance-authority@^0.7.1
- Installs with
- @kit-native/icon, @kit-native/lib-utils, @kit-native/text
- Also searched as
- pressed, two-state button
- Registry JSON
- /r/native/toggle.json
API
<Toggle pressed onPressedChange aria-label>…</Toggle>Get it
Already in every copy of the web kit:
import { Toggle, toggleVariants } from '@/components/ui/toggle';Details
- Exports
Toggle,toggleVariants- Also searched as
- pressed, favourite
- Upstream
- Unchanged from shadcn/ui; installs from their registry.
Agents: the whole registry is at /llms.txt.