Loading…
Toggle Samples
What
Radio Group
could be except for one crucial element.
Stateful
Context Aware
Toggle — Basic (Controlled)
Uses
pressed
,
onPressedChange
,
variant
,
size
, and accessibility props.
Magic
Disabled
State:
false
Shadcn Toggle Docs
ToggleGroup — Multiple (Formatting)
Uses
type="multiple"
with controlled
value
.
Selected:
bold, code
Clear
Toggle Group Docs
ToggleGroup — Single (Alignment)
Uses
type="single"
with roving focus and controlled state.
Alignment:
center
ToggleGroup — Single (Theme Demo)
Small icon toggles,
variant="outline"
.
Theme:
light
Set Light
Set Dark
Dynamic Standalone Sample Mount | AP Component Library