Input
Range Guard
A “from” and “to” pair in one border with live order validation: a “to” smaller than “from” highlights the whole group and shows an error message.
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 legend copy, defaultFrom and defaultTo
- the name prop — both form field names are built from it
- the min and max props for your own range
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/inputgroup-036?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
<Inputgroup036
name="age"
legend="Participant age"
defaultFrom={18}
defaultTo={65}
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Group label
legend· default: Participant age- From
defaultFrom· default: 18- To
defaultTo· default: 65- Accent
accent· default: theme colour- Background
background· default: theme colour
More in Input
FAQ
- How do I add Range Guard 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 Range Guard depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Range Guard?
- Adapt: the legend copy, defaultFrom and defaultTo; the name prop — both form field names are built from it; the min and max props for your own range. Keep as installed: the local --vibeui-inputgroup-036-* palette — do not swap it for your theme tokens; the box-shadow on the group instead of a border on the halves — a shadow does not double in width when collapsed and colours the whole group; the fieldset with a legend: this is one value made of two numbers.
- Is Range Guard 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/inputgroup-036.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
The component is self-contained: one file, no dependencies, its own palette in the local --vibeui-inputgroup-036-* variables. Client-side: "use client" for the sake of the state of both halves and the order check. Plain numbers have no native min/max that would by itself refuse a «to» smaller than a «from», so the check runs in JS after every change to either half. The error colours the whole group through a box-shadow on the shared frame rather than one half through a border — a «from» without a «to» and a «to» without a «from» are equally incomplete.
Tags
- inputgroup
- range
- validation
- fieldset
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…