Shadix UIDateTimePicker Input
A customizable date and time picker input component for shadcn/ui. Provides an intuitive interface for selecting dates and times.
Selected Date: 2025-10-30 14:20
Installation
Usage
Import the component
import { DateTimePickerInput } from '@/components/ui/datetimepicker-input';Basic Usage
const DateTimePickerInputDemo = () => {
return (
<DateTimePickerInput
mode="single"
value={new Date()}
onValueChange={(date) => {
console.log(date);
}}
placeholder="Select date"
/>
);
};With Range Mode
const DateTimePickerDemo = () => {
return (
<DateTimePickerInput
mode="range"
onValueChange={(date) => {
console.log(date);
}}
placeholder="Select date range"
/>
);
};With Time Mode
const DateTimePickerDemo = () => {
return (
<DateTimePickerInput
mode="single"
enableTime={true}
timeFormat="24h" // 12h or 24h
value={new Date()}
onValueChange={(date) => {
console.log(date);
}}
placeholder="Select date and time"
/>
);
};