@mui/x-date-pickers
Version:
The community edition of the MUI X Date and Time Picker components.
34 lines • 933 B
TypeScript
import type * as React from 'react';
import type { SxProps } from '@mui/system';
import type { Theme } from '@mui/material/styles';
export interface BaseToolbarProps extends ExportedBaseToolbarProps {
/**
* The id of the toolbar title element.
* The picker uses it to label its popup.
*/
titleId?: string;
}
export interface ExportedBaseToolbarProps {
/**
* Toolbar date format.
*/
toolbarFormat?: string;
/**
* Toolbar value placeholder—it is displayed when the value is empty.
* @default "––"
*/
toolbarPlaceholder?: React.ReactNode;
/**
* A CSS class name applied to the root element.
*/
className?: string;
/**
* If `true`, show the toolbar even in desktop mode.
* @default `true` for Desktop, `false` for Mobile.
*/
hidden?: boolean;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
}