# Source: https://mui.com/x/api/data-grid/toolbar-button.md

# Source: https://mui.com/x/api/charts/toolbar-button.md

# ToolbarButton API

## Demos

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

- [Charts - Toolbar](/x/react-charts/toolbar/)

## Import

```jsx
import { ToolbarButton } from '@mui/x-charts/Toolbar';
// or
import { ToolbarButton } from '@mui/x-charts';
// or
import { ToolbarButton } from '@mui/x-charts-pro';
// or
import { ToolbarButton } from '@mui/x-charts-premium';
```

## Props

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

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

## 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-charts/src/Toolbar/ToolbarButton.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts/src/Toolbar/ToolbarButton.tsx)