[object Promise]

# Toolbar API

## Demos

For examples and details on the usage of this React component, visit the component demo pages:

- [Data Grid - Toolbar component](/x/react-data-grid/components/toolbar)

## Import

```jsx
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';
```

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| render | `element \| func` | - | No |  |

> **Note**: The `ref` is forwarded to the root element (GridRoot).

## Source code

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

- [/packages/x-data-grid/src/components/toolbarV8/Toolbar.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-data-grid/src/components/toolbarV8/Toolbar.tsx)

# ToolbarButton API

## Demos

For examples and details on the usage of this React component, visit the component demo pages:

- [Data Grid - Toolbar component](/x/react-data-grid/components/toolbar)

## Import

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

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| color | `'default' \| 'inherit' \| 'primary'` | - | No |  |
| component | `elementType` | - | No |  |
| disabled | `bool` | - | No |  |
| edge | `'end' \| 'start' \| false` | - | No |  |
| href | `string` | - | No |  |
| id | `string` | - | No |  |
| label | `string` | - | No |  |
| rel | `string` | - | No |  |
| render | `element \| func` | - | No |  |
| role | `string` | - | No |  |
| size | `'large' \| 'medium' \| 'small'` | - | No |  |
| tabIndex | `number` | - | No |  |
| target | `string` | - | No |  |
| title | `string` | - | No |  |

> **Note**: The `ref` is forwarded to the root element (GridRoot).

## Source code

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

- [/packages/x-data-grid/src/components/toolbarV8/ToolbarButton.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-data-grid/src/components/toolbarV8/ToolbarButton.tsx)