@kanunilabs/datagrid-react / GridToolbarButtonProps
Interface: GridToolbarButtonProps
Properties
disabledReason?
optionaldisabledReason?:string
Set while the button cannot be used: it reads as unavailable, ignores clicks, and the tooltip and screen reader give this reason.
icon
icon:
ReactNode
The glyph, e.g. an inline SVG or <ToolbarIcon name="columns" />.
label
label:
string
The button's name: its accessible name and the start of its tooltip.
onClick?
optionalonClick?: () =>void
Returns
void
shortcut?
optionalshortcut?:string
Keyboard shortcut shown in the tooltip ("Export (Ctrl+E)") and as aria-keyshortcuts.
showLabel?
optionalshowLabel?:boolean
Show the label beside the icon. Default false (icon only).
testId?
optionaltestId?:string
data-testid on the button.