Installation
npx kinetic-ui-cli@latest add date-pickerOverview
A robust single date picker built on top of react-day-picker and our standard Popover primitive. It inherits the global theme and CSS variables.
Usage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { DatePicker } from "@/components/ui/date-picker";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { DatePicker } from "@/components/ui/date-picker";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<DatePicker
date{/* value */}
onDateChange{/* value */}
placeholder="example"
/>
</div>
);
}