Props
interface ButtonProps extends AriaProps, ButtonStyleProps, TooltipAnchorProps<HTMLButtonElement>
aria-selected | undefined | false | true The |
children | React.ReactNode | string The contents of the button. |
className | undefined | string Extra |
disabled | undefined | false | true Indicates whether or not the user can interact with the button. |
icon | IconName | ReactElement The name of the icon or a React node. For more details, see the list of supported icons. |
id | undefined | string The |
onClick | undefined | Click event handler. Also handles Space and Enter keypress events. |
size | ControlSizeProp The size of the button. Defaults to |
style | React.CSSProperties Extra styles to apply to the button. |
tabIndex | undefined | number Indicates if the button can be focused and if/where it participates in sequential keyboard navigation. |
type | "button" | "submit" | "reset" The type of the button. Defaults to |
variant | ButtonVariant The variant of the button. Defaults to |