Datetime Picker Hour
spectrumui/datetime-picker-hour-cycleFreeComponent
component for the Datetime Picker Hour
Install it
npx shadcn@latest add https://ui.spectrumhq.in/r/datetime-picker-hour-cycle.jsonSource
1"use client";2import React, { useState } from "react";3import { DateTimePicker } from "@/components/ui/datetime-picker";4import { Label } from "@/components/ui/label";56const DatetimePickerHourCycle = () => {7 const [date12, setDate12] = useState<Date | undefined>(undefined);8 const [date24, setDate24] = useState<Date | undefined>(undefined);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>12 Hour</Label>13 <DateTimePicker hourCycle={12} value={date12} onChange={setDate12} />14 </div>15 <div className="flex w-72 flex-col gap-2">16 <Label>24 Hour</Label>17 <DateTimePicker hourCycle={24} value={date24} onChange={setDate24} />18 </div>19 </div>20 );21};2223export default DatetimePickerHourCycle;
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 |
