The Button component is an interactive element used to trigger actions or events within an application. It provides a consistent and accessible way for users to interact with the interface, featuring customizable styles and states (e.g., default, hover, active, disabled).
Basics
Neutral
Add -neutral suffix to the primary variant to transform buttons with black color.
Danger
Add -danger suffix to the basic variants to transform buttons with red color. Doesn't include secondary!
AI
Add -ai suffix to the basic variants to transform buttons with purple color. Doesn't include secondary!
Use size property with xs, sm, md (default) or lg.
Use disabled property to disable the button.
You can override styles with tailwind classes.
You can set an isLoading property to display a loading indicator that matches the button’s size and disables it.
You can transform your Button component with as property to add you linker, href or to... all that you want.
See documentation from ButtonGroup component.