Switch with description.
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.
Best for: A title over a supporting sentence with the control at the right, the whole row one clickable label
When to use
- Single on or off preferences beside a label, such as airplane mode, sign in security or an AI feature
- Grouped notification, privacy and editor preferences in a card, a Frame panel or a dense list
- Options with a supporting sentence set as clickable tiles, including a risky one that erases data
When not to use
- Several described options laid out as tiles in 2 columns: use the Switch Card Grid example
- An option that erases data and needs a red title and an irreversible warning: use the Switch Destructive Confirm example
- A complete options page with account, security and notification sections ready to drop in: use the Settings blocks
- A row of pressed buttons that picks a view, an alignment or a time range: use the Toggle Group component
- A consent or terms box that is ticked and sent along with a form: use the Checkbox component
Agent notes
- Every
Switchhere is uncontrolled, seeded bydefaultCheckedor left off, and nothing reads a flip back; control it to save the setting - No example gives
Switcha name, so a native form submit carries none of these values; add one when the switch sits inside a form
https://reui.io/components/switch/c-switch-2.mdget_example("c-switch-2")npx shadcn@latest add @reui/c-switch-2About Shadcn Switch With Description
Switch with description. Built by composing Field, Switch. A free, open source shadcn switch example you can install with npx shadcn@latest add @reui/c-switch-2 and edit as your own code.
What You Can Build With Shadcn Switch With Description
- Composes Field, Switch, so it drops into any project already using those components.
- Install it with the shadcn CLI: npx shadcn@latest add @reui/c-switch-2
- Open source and free, with the full source on this page to copy or adapt.
More Shadcn Switch Examples
- Basic Basic switch.
- Disabled Disabled switch.
- Sizes Switch in different sizes.
- Switch Group Switch group
- Card Separators Switch list in card with separators
- Card With Icons Switch list in card with icons
- In Frame Switch in frame
- Tooltip Info Switch with tooltip info
- With Badges Switch with badges
- Colored Colored switches
- Destructive Confirm Destructive switch with confirmation text
- Compact Table Compact settings table with switches
Related Shadcn Component Categories
Open-source shadcn table components for admin tables, data display, and responsive lists.
Open-source shadcn tabs components for segmented content, settings views, and dashboard sections.
Open-source shadcn textarea components for comments, long-form input, and support tickets.
Open-source shadcn time picker components for booking forms, opening hours, and shift scheduling.
Open-source shadcn timeline components for activity feeds, roadmaps, and event history.
Open-source shadcn toggle components for formatting controls, compact actions, and binary UI states.
Frequently Asked Questions
When should I use Shadcn Switch With Description?
Use it for a title over a supporting sentence with the control at the right, the whole row one clickable label.
Shadcn Switch as a whole fits:
- Single on or off preferences beside a label, such as airplane mode, sign in security or an AI feature
- Grouped notification, privacy and editor preferences in a card, a Frame panel or a dense list
- Options with a supporting sentence set as clickable tiles, including a risky one that erases data
For several described options laid out as tiles in 2 columns, use the Switch Card Grid example. For an option that erases data and needs a red title and an irreversible warning, use the Switch Destructive Confirm example. For a complete options page with account, security and notification sections ready to drop in, use the Settings blocks. For a row of pressed buttons that picks a view, an alignment or a time range, use the Toggle Group component. For a consent or terms box that is ticked and sent along with a form, use the Checkbox component.
How do I install Shadcn Switch With Description?
Is Shadcn Switch With Description free to use?
Which components does Shadcn Switch With Description use?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.