Button

Button enables users to perform actions, navigate the interface, and interact with features and functionalities.


ButtonProps

Name

Description

Type

Default

children

The content of the component

ReactNode

-

classNameForwarded to root elementstring

-

color

The color of the component. It supports 4 colors

primary secondary neutral dangerprimary
component

lets you change the root element

HTML elementsbutton
disabledIf true, the component is disabledbooleanfalse
floatingIf true, the button will have floating stylesbooleanfalse
fullWidthIf true, the button will take up the full width of its containerbooleanfalse
hrefThe URL to link to when the button with prop component='a' is clickedstring

-

leftIcon

Adds icon before component content

ReactNode

-

loadingIf true, the button will perform the loading statebooleanfalse
rightIcon

Adds icon after component content

ReactNode

-

size

The size of the component

sm md lg xl 2xl responsivelg
styleForwarded to root elementobject

-

typeSet the original html type of button, see: MDNbutton submit resetbutton
variant

The variant to use

fill ghost outlinefill
  • All other props will be forwarded to root element

Was this page helpful?