UNPKG

@neuctra/ui

Version:

A modern, responsive, customizable React UI component library powered by Tailwind CSS and Vite.

32 lines (31 loc) 1.16 kB
import { default as React } from 'react'; import { CalendarProps } from './Calendar'; export interface DatePickerProps { value?: Date | null; defaultValue?: Date | null; onChange?: (date: Date | null) => void; placeholder?: string; /** Format the displayed date; defaults to the locale date string. */ formatDate?: (date: Date) => string; label?: string; error?: string; helperText?: string; size?: "sm" | "md" | "lg"; disabled?: boolean; /** Show an inline clear button while a date is selected. */ clearable?: boolean; /** Forwarded to the inner <Calendar />. */ calendarProps?: Omit<CalendarProps, "value" | "defaultValue" | "onChange" | "className">; id?: string; className?: string; wrapperClassName?: string; /** 🔥 Full Customization */ labelClassName?: string; iconClassName?: string; textClassName?: string; clearButtonClassName?: string; clearIconClassName?: string; panelClassName?: string; helperClassName?: string; } export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLButtonElement>>;