The Toolbar is a reserved area above the Data Grid component typically used for global actions for the grid itself.
To add a custom toolbar, you can use the toolbar prop and pass a React component.
Since the toolbar is positioned within the Data Grid component, it shares the same height restrictions as the grid itself. Ensure your parent height is set appropriately to accommodate the toolbar.
To access the Data Grid context, you use the useDataGridContext hook which provides
a signal driven store for reading and updating state in a highly performant way.
Read the Data Grid Context documentation for more details.