Kvaser CanKing GUI Extensions SDK v7.4.0
Kvaser CanKing GUI Extensions SDK / controls / ButtonProps
Interface: ButtonProps
Properties of a Button component displayed by the toolbar.
Properties
ariaLabel?
optionalariaLabel:string
Aria label.
children?
optionalchildren:ReactElement<DropdownButtonChildrenProps>
Chidren to be displayed in this button if this button should be a DropdownButton
color?
optionalcolor:"inherit"|"primary"|"secondary"|"success"|"error"|"info"|"warning"
The button color.
disabled?
optionaldisabled:boolean
Set to true to disable this button.
icon?
optionalicon:ReactNode
Icon to be displayed in this button.
onClick()
onClick: () =>
void
Callback that will be called when this button has been clicked.
Returns
void
size?
optionalsize:number|"small"|"medium"|"large"
Size of this button.
text?
optionaltext:string
Text to be displayed in this button.
tooltip?
optionaltooltip:string
A tooltip of this button.
variant?
optionalvariant:"text"|"outlined"|"contained"
The button variant.