@loke/design-system
Version:
A design system with individually importable components
18 lines (17 loc) • 796 B
TypeScript
import { type CalendarMultipleProps, type CalendarRangeProps, type CalendarSingleProps } from "@loke/design-system/calendar";
type DatePickerProps = (CalendarSingleProps | CalendarMultipleProps | CalendarRangeProps) & {
/**
* Placeholder text to display when no date is selected.
* Shows in the trigger button when the calendar is closed.
*/
placeholder?: string;
};
/**
* DatePicker component that provides a popover interface for date selection.
*
* Simply wraps the Calendar component in a popover with a trigger button.
* All Calendar props are passed through unchanged.
*/
declare const DatePicker: import("react").ForwardRefExoticComponent<DatePickerProps & import("react").RefAttributes<HTMLDivElement>>;
export { DatePicker };
export type { DatePickerProps };