Checkbox & toggles
Locked Switch
A locked switch that explains itself: a padlock beside the caption, the reason in words and a live link to lifting the limit.
React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.
What you can change
- the setting caption through label
- the reason text through reason
- the link caption through actionText and its address through actionHref
A link for your AI agent: preview, code and instructions.
Preview

Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.club/c/switch-008?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
How to use
<Switch008
label="Cloud export"
reason="Available on the Team plan."
actionText="Change plan"
actionHref="/pricing"
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Caption
label· default: Cloud export- Reason
reason· default: Available on the Team plan: on the current one export is manual only.- Link
actionText· default: Change plan- Link address
actionHref· default: #pricing- Accent
accent· default: theme colour- Background
background· default: theme colour
More in Checkbox & toggles
FAQ
- How do I add Locked Switch with Cursor or Claude Code?
- Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
- What does Locked Switch depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Locked Switch?
- Adapt: the setting caption through label; the reason text through reason; the link caption through actionText and its address through actionHref. Keep as installed: the local --vibeui-switch-008-* palette — do not swap it for your theme tokens; the reason in words next to the lock: a grey toggle with no text reads as a bug; the live link inside the explanation — it is the only way out of the locked state and must not be disabled.
- Is Locked Switch free?
- Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.
For developers
npx shadcn@latest add https://vibeui.club/r/pro/switch-008.jsonThis command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options
Technical notes
A server component. The switch is turned off through disabled and the track is drawn as a dashed line — the state reads without colour too. The padlock is assembled from a rectangular body and a shackle on a pseudo-element, with no icon package. The link is deliberately not blocked and gets a focus ring of its own: it is the only way out of the dead end. The reason sits in a separate paragraph with a muted background. The palette lives in --vibeui-switch-008-*.
Tags
- switch
- disabled
- upgrade
- state
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…