Skip to main content

Button

NameDescriptionDefault
children*The text to display in the button.
ReactNode
-
typeThe button type.
'button' | 'submit' | 'reset'
'button'
variantSince: 1.1.0
The button variant.
'default' | 'primary' | 'success' | 'danger'
'default'
onClickButton click event handler.
(event: React.MouseEvent<HTMLButtonElement>) => void
event The click event.
-