About
A compact year grid picker with page navigation for selecting a single year within a configurable range.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Year Picker to your project and fits it to your theme.
Code
How Year Picker is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { YearPicker } from "@/components/ui/year-picker";
export default function YearPickerDemo() {
return (
<div className="flex min-h-[400px] w-full items-center justify-center bg-background p-8">
<YearPicker
defaultValue={new Date().getFullYear()}
onValueChange={(v) => {}}
/>
</div>
);
}
















