Calendar
Filter Date Chip
A date in a filter bar as one chip among the rest: the value is spelled out on the chip, the month grid opens as an overlay panel and closes right after a pick.
What you can change
- label — the filter caption to the left of the value
- defaultValue — the date selected at first render, as a YYYY-MM-DD string
- neighbours — captions of the sibling chips that show the filter-bar context
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/calendar-029?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, its own palette in local variables --vibeui-calendar-029-*. Client-side: the value, the panel's openness and the month on show live in useState. The panel is positioned absolutely against the [data-part="anchor"] wrapper with position:relative, so it needs neither a portal nor coordinate maths. The chip button carries aria-expanded and aria-controls, Escape is caught by a handler on the root and closes the panel, and picking a day closes it as well. The clear button is placed beside the chip rather than nested inside it: an interactive element inside a button is invalid markup, broken for both the keyboard and a screen reader. The grid is built on 42 cells from Monday, and days of neighbouring months are marked data-outside. The theme comes from the surrounding color-scheme through light-dark(): the filter row has no surface of its own by default, it sits directly on the page background and darkens along with it, while the background prop brings the panel back. The panel itself has a surface of its own — --vibeui-calendar-029-panel: a popover has to be opaque, otherwise the month grid lands on the text beneath it. The captions of the clear and paging buttons arrive in props, the Russian values sit in the defaults.
Tags
- calendar
- filter
- chip
- compact
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…