Actions
Toggle group
Available forNativeWeb
type single/multiple
Usage
Use type="single" for a segmented control.
API
<ToggleGroup type="single|multiple" value onValueChange><ToggleGroupItem value … /></ToggleGroup>Get it
Already in every copy of the native kit:
import { ToggleGroup } from '@/components/ui/toggle-group';Details
- Exports
ToggleGroup- Packages
- @rn-primitives/toggle-group@^1.5.2, class-variance-authority@^0.7.1
- Installs with
- @kit-native/icon, @kit-native/lib-utils, @kit-native/text, @kit-native/toggle
- Also searched as
- segmented, multi select buttons
- Registry JSON
- /r/native/toggle-group.json
Usage
Use type="single" for a segmented control (view switchers, ranges). Selected state is neutral, not the brand colour.
API
<ToggleGroup type="single" value onValueChange><ToggleGroupItem value>…</ToggleGroupItem></ToggleGroup>Get it
Already in every copy of the web kit:
import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group';Details
- Exports
ToggleGroup,ToggleGroupItem- Also searched as
- segmented control, view switcher
- Upstream
- Unchanged from shadcn/ui; installs from their registry.
Agents: the whole registry is at /llms.txt.