Button
type ButtonProps = ComponentProps<typeof Button>;
Prop | Type | Default Value | Description |
---|---|---|---|
className | string | undefined | The CSS class name for styling the button. |
variant | string | default | The variant style of the button. Possible values are: 'link', 'default', 'primary', 'secondary', 'tertiary', 'destructive', 'info', 'outline', 'subtle', 'ghost', null, or undefined. |
size | string | default | The size of the button. Possible values are: 'default', 'sm', 'md', 'lg', 'xl', null, or undefined. |
onClick | Function | null | A callback function to be executed when the button is clicked. |