Skip to contentSkip to content

ToolbarButton API

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

Demos

Import

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

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

Props

NameTypeDescription
disabledbool

If true, the button is disabled.

idstring

The id of the button element.

renderelement
| func

A function to customize the rendering of the component.

size'large'
| 'medium'
| 'small'

The size of the button.

tabIndexnumber

The tabIndex of the button element.

The component cannot hold a ref.

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.