UNPKG

rsuite

Version:

A suite of react components

17 lines (16 loc) 628 B
import React from 'react'; import { PredefinedRangesProps } from './PredefinedRanges'; export type { RangeType } from './types'; export interface ToolbarProps<T = any, Shortcut = T> extends PredefinedRangesProps<T, Shortcut> { hideOkBtn?: boolean; disableOkBtn?: (value: T) => boolean; onOk?: (event: React.MouseEvent) => void; } type ToolbarComponent = React.ForwardRefExoticComponent<ToolbarProps> & { <T = any, Shortcut = T>(props: ToolbarProps<T, Shortcut>): React.ReactElement | null; }; /** * Toolbar for DatePicker and DateRangePicker */ declare const Toolbar: ToolbarComponent; export default Toolbar;