Example
Props
string
required
The text of the button.
() => void
required
A function that will be called if the user clicks the button.
'secondary' | 'destructive'
The style of the button.Defaults to
"secondary".boolean
Whether or not the button is disabled.Defaults to
false.KeyboardKey
An optional keyboard shortcut that will fire the button.