Calendar
Decade Picker
A year picker by decades: a 4×3 grid shows ten years plus one neighbour on each edge, and the arrows page ten years at a time.
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 initial year through defaultValue
- the lower bound through min and the upper one through max
- the highlight colour through accent
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/calendar-012?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
<Calendar012 defaultValue={2026} min={1970} max={2040} />A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Year
defaultValue· default: 2026- Upper bound
max· default: 2040- Accent
accent· default: theme colour- Background
background· default: theme colour
More in Calendar
FAQ
- How do I add Decade Picker 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 Decade Picker depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Decade Picker?
- Adapt: the initial year through defaultValue; the lower bound through min and the upper one through max; the highlight colour through accent. Keep as installed: the local --vibeui-calendar-012-* palette — with someone else's theme tokens the component stops matching its preview; twelve cells instead of ten: the edge neighbours remove an extra arrow press at a decade boundary; aria-pressed on the year buttons: without it the chosen year is visible to sighted users only.
- Is Decade Picker 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/calendar-012.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 client component: useState holds the selected year and the current decade, which is why "use client" is needed. The grid of twelve buttons is the decade's ten years plus one year on each side: crossing the boundary (1999 from the 2000s grid) takes a single press, without paging back with an arrow. The neighbouring years are marked data-outside and dimmed, but stay pressable. Going outside min/max switches the button off through disabled and strikes the label through, and the arrows are locked when the next decade lies entirely outside the range. The selected year is marked aria-pressed, so a screen reader reports the state without an extra caption.
Tags
- calendar
- year
- picker
- decade
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…