Button
Properties
text
required
React.ReactNode
A ReactNode (typically a string or a React component) to be used as a label for this button.
onClick
optional
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
A handler for when this button is clicked.
primary
optional
boolean = false
If set to true
, this will be styled to indicate that it is a primary action.
disabled
optional
boolean = false
If set to true
, this will be styled to indicate that it is disabled, and will render the button non-interactive.
type
optional
"button" | "submit" | "reset"
The type of this button. Influences behavior inside forms.
className
optional
string
A CSS class to pass to the backing React component.