UNPKG

@synergycodes/overflow-ui

Version:

A React library for creating node-based UIs and diagram-driven applications. Perfect for React Flow users, providing ready-to-use node templates and components that work seamlessly with React Flow's ecosystem.

39 lines (38 loc) 1.28 kB
import { DatePickerType } from '@mantine/dates'; import { DatePickerProps } from './types'; /** * Component for selecting a date with customizable format and placeholder */ export declare const DatePicker: import('react').ForwardRefExoticComponent<import('@mantine/dates').DatePickerInputProps<DatePickerType> & { inputSize?: import('../..').ItemSize; } & { /** * Format string to control how the selected date is displayed * (e.g., 'yyyy-MM-dd') */ valueFormat?: string; /** * Placeholder text to show when no date is selected */ placeholder?: string; /** * Picker type */ type?: DatePickerType; /** * Default date value when the component is initially rendered. * * For the "default" is a single date, for the "range" [date, date]; and for the "multiple", an array of dates. */ defaultValue?: DatePickerProps["defaultValue"]; /** * Controlled value for the selected date * * For the "default" is a single date, for the "range" [date, date]; and for the "multiple", an array of dates. */ value?: DatePickerProps["value"]; /** * Whether the date picker has an error */ error?: boolean; } & import('react').RefAttributes<HTMLButtonElement>>;