Datetime Picker Locale
spectrumui/datetime-picker-localeFreeComponent
component for the Datetime Picker Locale
Install it
npx shadcn@latest add https://ui.spectrumhq.in/r/datetime-picker-locale.jsonSource
1"use client";2import React, { useState } from "react";3import { DateTimePicker } from "@/components/ui/datetime-picker";4import { zhTW } from "date-fns/locale";5import { InlineCode } from "@/components/ui/inline-code";6const DatetimePickerLocale = () => {7 const [date, setDate] = useState<Date | undefined>(undefined);8 return (9 <div className="flex w-72 flex-col gap-3">10 <p>11 The following example is <InlineCode>zhTW</InlineCode> from{" "}12 <InlineCode>date-fns</InlineCode>.13 </p>14 <DateTimePicker15 locale={zhTW}16 value={date}17 onChange={setDate}18 weekStartsOn={undefined}19 showWeekNumber={undefined}20 showOutsideDays={undefined}21 />22 </div>23 );24};2526export default DatetimePickerLocale;
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 |
