@mui/x-date-pickers
Version:
The community edition of the Date and Time Picker components (MUI X).
29 lines • 1.12 kB
TypeScript
import * as React from 'react';
import { DialogActionsProps } from '@mui/material/DialogActions';
export type PickersActionBarAction = 'clear' | 'cancel' | 'accept' | 'today' | 'next' | 'nextOrAccept';
export interface PickersActionBarProps extends DialogActionsProps {
/**
* Ordered array of actions to display.
* If empty, does not display that action bar.
* @default
* - `[]` for Desktop Date Picker and Desktop Date Range Picker
* - `['cancel', 'accept']` for all other Pickers
*/
actions?: PickersActionBarAction[];
}
/**
* Demos:
*
* - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/)
* - [Custom layout](https://mui.com/x/react-date-pickers/custom-layout/)
*
* API:
*
* - [PickersActionBar API](https://mui.com/x/api/date-pickers/pickers-action-bar/)
*/
declare function PickersActionBarComponent(props: PickersActionBarProps): React.JSX.Element | null;
declare namespace PickersActionBarComponent {
var propTypes: any;
}
declare const PickersActionBar: React.MemoExoticComponent<typeof PickersActionBarComponent>;
export { PickersActionBar };