28 lines
1.2 KiB
TypeScript
28 lines
1.2 KiB
TypeScript
import * as React from 'react';
|
|
import type { RenderProp } from '@mui/x-internals/useComponentRenderer';
|
|
export type ToolbarProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
/**
|
|
* A function to customize rendering of the component.
|
|
*/
|
|
render?: RenderProp<React.ComponentProps<typeof ToolbarRoot>>;
|
|
};
|
|
declare const ToolbarRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}>;
|
|
/**
|
|
* The top level Toolbar component that provides context to child components.
|
|
* It renders a styled `<div />` element.
|
|
*
|
|
* Demos:
|
|
*
|
|
* - [Toolbar](https://mui.com/x/react-data-grid/components/toolbar/)
|
|
*
|
|
* API:
|
|
*
|
|
* - [Toolbar API](https://mui.com/x/api/data-grid/toolbar/)
|
|
*/
|
|
declare const Toolbar: React.ForwardRefExoticComponent<ToolbarProps> | React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
/**
|
|
* A function to customize rendering of the component.
|
|
*/
|
|
render?: RenderProp<React.ComponentProps<typeof ToolbarRoot>>;
|
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
export { Toolbar }; |