Actions

Toggle

Available forNativeWeb

pressed two-state button

The native kit's real component, live in its web build at phone width. Follows this site's theme.

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

Agents: the whole registry is at /llms.txt.