Primitives
Switch
Controlled or uncontrolled toggle. Use for instant settings, not form submissions.
Basic
const [on, setOn] = useState(true)
<Switch checked={on} onCheckedChange={setOn} />
<Label>Email notifications</Label> Settings group
Task updates, mentions, assignments.
Summary of activity every Monday.
Product announcements and news.