Button
Buttons allow users to take actions, and make choices, with a single tap.
code
Expend code
#Variant & Disable
code
Expend code
#Color
code
Expend code
#Button with Icons
code
Expend code
#Icons
code
Expend code
Button
the properties of the button component that the user can interact with.
Prop | Type | Default | Description |
---|---|---|---|
variant | 'text' | 'contained' | 'outlined' | 'text' | Specifies the style variant for the button. |
startIcon | React.ReactNode | - | The icon to display at the beginning of the button. |
endIcon | React.ReactNode | - | The icon to display at the end of the button. |
children | React.ReactNode | - | Contains text or elements that will be displayed inside the button. |
className | string | - | CSS class for additional styling. |