BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/spectrumui/datetime-picker-year-range

Datetime Year Range

spectrumui/datetime-picker-year-range
FreeComponent

component for the Datetime Year Range

Install it

npx shadcn@latest add https://ui.spectrumhq.in/r/datetime-picker-year-range.json

Source

app/registry/datetime-picker/usage/datetime-picker-year-range.tsxui.spectrumhq.in/r/datetime-picker-year-range.json
1"use client";
2import React from "react";
3import { DateTimePicker } from "@/components/ui/datetime-picker";
4import { Label } from "@/components/ui/label";
5
6const DatetimePickerYearRange = () => {
7 const [date, setDate] = React.useState<Date | undefined>(undefined);
8
9 return (
10 <div className="flex flex-col gap-3 lg:flex-row">
11 <div className="flex w-72 flex-col gap-2">
12 <Label>± 3 Years</Label>
13 <DateTimePicker yearRange={3} value={date} onChange={setDate} />
14 </div>
15 <div className="flex w-72 flex-col gap-2">
16 <Label>± 10 Years</Label>
17 <DateTimePicker yearRange={10} value={date} onChange={setDate} />
18 </div>
19 <div className="flex w-72 flex-col gap-2">
20 <Label>± 30 Years</Label>
21 <DateTimePicker yearRange={30} value={date} onChange={setDate} />
22 </div>
23 </div>
24 );
25};
26
27export default DatetimePickerYearRange;

What it pulls in

Other registry items

  • datetime-picker

Files it writes

  • app/registry/datetime-picker/usage/datetime-picker-year-range.tsx

Facts

Registry
spectrumui
Type
registry:component
Access
Free
Files written
1
Licence
Apache-2.0
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

ui.spectrumhq.in arihantcodes/spectrum-ui on GitHub Raw registry item This item as JSON

More from spectrumui

All 182 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionspectrumuiComponentsFreeno deps
Alert demoalert-1spectrumuiComponentsFree1 dep
Alert 2alert-2spectrumuiComponentsFreeno deps
Alert 3alert-3spectrumuiComponentsFree1 dep
Alert 4alert-4spectrumuiComponentsFree1 dep
Animated Cardanimated-cardspectrumuiComponentsFree1 dep · 2 files
Animated Draweranimated-drawerspectrumuiComponentsFree4 deps
Animated SVG Chartanimated-SVG-chartspectrumuiComponentsFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex