Datetime Picker Granularity
spectrumui/datetime-picker-granularityFreeComponent
component for the Datetime Picker Granularity
Install it
npx shadcn@latest add https://ui.spectrumhq.in/r/datetime-picker-granularity.jsonSource
1"use client";2import React from "react";3import { DateTimePicker } from "@/components/ui/datetime-picker";45const DatetimePickerGranularity = () => {6 const [date, setDate] = React.useState<Date | undefined>(undefined);78 return (9 <div className="flex flex-col gap-3 lg:flex-row lg:gap-10">10 <div className="w-72 space-y-2">11 <p>Minute</p>12 <DateTimePicker granularity="minute" value={date} onChange={setDate} />13 </div>14 <div className="w-72 space-y-2">15 <p>Hour</p>16 <DateTimePicker granularity="hour" value={date} onChange={setDate} />17 </div>18 <div className="w-72 space-y-2">19 <p>Day</p>20 <DateTimePicker granularity="day" value={date} onChange={setDate} />21 </div>22 </div>23 );24};2526export default DatetimePickerGranularity;
What it pulls in
Other registry items
Files it writes
More from spectrumui
All 182 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | spectrumui | Components | Free | no deps | |
| Alert demoalert-1 | spectrumui | Components | Free | 1 dep | |
| Alert 2alert-2 | spectrumui | Components | Free | no deps | |
| Alert 3alert-3 | spectrumui | Components | Free | 1 dep | |
| Alert 4alert-4 | spectrumui | Components | Free | 1 dep | |
| Animated Cardanimated-card | spectrumui | Components | Free | 1 dep · 2 files | |
| Animated Draweranimated-drawer | spectrumui | Components | Free | 4 deps | |
| Animated SVG Chartanimated-SVG-chart | spectrumui | Components | Free | 1 dep |
