Checkbox & toggles

Locked Radio Group

A radio group disabled as a whole: a fieldset with disabled mutes every option with one attribute, while the reason and a live link to lift the restriction stay right next to it.

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 question through legend and the options through options
  • the fixed current choice through value
  • the radio name through name

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme
Locked Radio Group — A radio group disabled as a whole: a fieldset with disabled mutes every option with one attribute, while the reason and a live link to lift the restriction stay right next to it.

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.club/c/radio-019?lang=en&theme=dark

2Paste into the chat
3Get it in your project

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

<Radio019
  legend="Role in the project"
  value="editor"
  reason="The workspace owner assigns roles."
  actionText="Message the owner"
/>

A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.

Settings

Title
legend · default: Role in the project
Current role
value · default: editor
Lock reason
reason · default: The workspace owner assigns roles — you cannot change it yourself.
Exit link
actionText · default: Message the owner
Accent
accent · default: theme colour
Background
background · default: theme colour

FAQ

How do I add Locked Radio Group 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 Radio Group depend on?
No npm packages beyond React and Tailwind CSS.
What can I change in Locked Radio Group?
Adapt: the question through legend and the options through options; the fixed current choice through value; the radio name through name. Keep as installed: the local --vibeui-radio-019-* palette — do not swap it for your theme tokens; disabled on the fieldset itself — every option switches off with one attribute, not row by row; the explicit disabled on every input next to the disabled fieldset — otherwise React warns about checked without onChange.
Is Locked Radio Group 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/radio-019.json

This 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: no state, no hooks — the selected option comes in through the value prop and is drawn with defaultChecked. disabled on the fieldset switches off every nested radio at once; each input also carries an explicit disabled, otherwise React warns about checked without onChange. The link to lift the restriction ignores the fieldset's disabled and stays clickable. The --vibeui-radio-019-* palette is built on light-dark().

Tags

  • radio
  • disabled
  • locked
  • form
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…