UNPKG

react-wired-elements

Version:

Wired Elements as React components. TypeScript types included.

62 lines (61 loc) 1.87 kB
import { BaseProps } from './types'; export interface WiredCalendarProps extends BaseProps { /** * Gives the button a sketchy height. * @default 1 */ elevation?: 1 | 2 | 3 | 4 | 5; /** * Optional value that will be parsed as Date. Pre selects a date highlighted in the calendar. */ selectedDate?: string; /** * Optional value that will be parsed as Date. Lower limit of valid dates. */ firstDate?: string; /** * Optional value that will be parsed as Date. Higher limit of valid dates. */ lastDate?: string; /** * Optional string value to set locale used ONLY FOR RENDERING headers in calendar. Default to browser locale. Note: All internal and external dates handling are not affected by locale. */ locale?: string; /** * Disables the calendar selector. * @default false */ disabled?: boolean; /** * Use first letter only in weekday names. * @default false */ initials?: boolean; value?: {}; format?(): void; /** * Calendar sketch line color. * @default "black" */ bgColor?: string; /** * Background color of the calendar. * @default "white" */ lineColor?: string; /** * Background color of the calendar. * @default "white" */ selectedColor?: string; /** * Selected date sketch line color. * @default "red" */ dimmedColor?: string; /** * Event fired when a date is selected by the user. */ onSelect?(e: CustomEvent): void; } export declare const WiredCalendar: ({ elevation, selectedDate, firstDate, lastDate, locale, disabled, initials, bgColor, lineColor, selectedColor, dimmedColor, onSelect, className, style, }: WiredCalendarProps) => JSX.Element;