Skip to content
Skip to content

Toolbar API

API reference docs for the React Toolbar component. Learn about the props, CSS, and other APIs of this exported module.

Demos

Import

import { Toolbar } from '@mui/x-data-grid/components';
// or
import { Toolbar } from '@mui/x-data-grid';
// or
import { Toolbar } from '@mui/x-data-grid-pro';
// or
import { Toolbar } from '@mui/x-data-grid-premium';

Learn about the difference by reading this guide on minimizing bundle size.



The top level Toolbar component that provides context to child components. It renders a styled <div /> element.

Props

A function to customize rendering of the component.

Type:element
| func


The ref is forwarded to the root element.

Source code

If you did not find the information in this page, consider having a look at the implementation of the component for more detail.