@mui/x-date-pickers
Version:
The community edition of the Date and Time Picker components (MUI X).
31 lines (30 loc) • 1.22 kB
TypeScript
import * as React from 'react';
import { BaseToolbarProps, ExportedBaseToolbarProps } from '../internals/models/props/toolbar';
import { TimePickerToolbarClasses } from './timePickerToolbarClasses';
import { TimeViewWithMeridiem } from '../internals/models';
import { PickerValidDate } from '../models';
export interface TimePickerToolbarProps<TDate extends PickerValidDate> extends BaseToolbarProps<TDate | null, TimeViewWithMeridiem>, ExportedTimePickerToolbarProps {
ampm?: boolean;
ampmInClock?: boolean;
}
export interface ExportedTimePickerToolbarProps extends ExportedBaseToolbarProps {
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<TimePickerToolbarClasses>;
}
/**
* Demos:
*
* - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)
* - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)
*
* API:
*
* - [TimePickerToolbar API](https://mui.com/x/api/date-pickers/time-picker-toolbar/)
*/
declare function TimePickerToolbar<TDate extends PickerValidDate>(inProps: TimePickerToolbarProps<TDate>): React.JSX.Element;
declare namespace TimePickerToolbar {
var propTypes: any;
}
export { TimePickerToolbar };