Documentation
Components
Button

Button

type ButtonProps = ComponentProps<typeof Button>;
A list of the props available
PropTypeDefault ValueDescription
classNamestringundefinedThe CSS class name for styling the button.
variantstringdefaultThe variant style of the button. Possible values are: 'link', 'default', 'primary', 'secondary', 'tertiary', 'destructive', 'info', 'outline', 'subtle', 'ghost', null, or undefined.
sizestringdefaultThe size of the button. Possible values are: 'default', 'sm', 'md', 'lg', 'xl', null, or undefined.
onClickFunctionnullA callback function to be executed when the button is clicked.