Date Selector
Range In One Panel
A «from … to …» range in a single grid: the span is filled with a solid stripe and the night count sits right under it.
What you can change
- legend, fromLabel and toLabel — the heading and the field captions
- defaultFrom and defaultTo — the starting range in YYYY-MM-DD
- nightsText — the night plural forms with a {count} placeholder
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.ru/c/date-013?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…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
The component is self-contained: one file, zero dependencies, palette in the local --vibeui-date-013-* variables. Client component: both bounds, the edge being edited and the displayed month live in state. The two fields are the main part here — they are always visible, they show what is chosen and they mark which edge is being edited; the grid is attached to them and opens from whichever field was pressed. A click before the check-in is not an error: it moves the start instead of complaining. The grid cells carry no gap, otherwise the span would read as a dotted line of separate tiles. Dates are compared as YYYY-MM-DD strings — with an identical format that is correct and needs no parsing. The values reach the form through the hidden name-from and name-to fields.
Tags
- date
- range
- booking
- calendar
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…