A date picker component with calendar popup and date formatting.
Installation
Usage
import { DatePickerDemo } from "viora-ui";import { DatePickerDemo } from "viora-ui";
export default function DatePickerDemoDemo() {
return (
<div className="flex min-h-[350px] w-full items-center justify-center p-6">
<DatePickerDemo />
</div>
);
}API Reference
DatePickerDemo
| Prop | Type | Default | Description |
|---|---|---|---|
| type? | 'button' | 'submit' | 'reset' | - | Configuration for type. |
| variant? | 'outline' | 'dim' | - | Visual style variant. |
| mode? | 'default' | 'input' | 'icon' | - | Configuration for mode. |
| placeholder? | boolean | false | Configuration for placeholder. |
| size? | 'default' | 'sm' | - | Size option for the component. |
| className? | string | "" | Additional CSS classes for custom styling. |
| onClick? | (e?: React.MouseEvent<HTMLElement>) => void | - | Callback fired on click event. |
| children? | React.ReactNode | - | Content or child elements to render. |
Built by Otis
Last updated: 9/13/2026