Button components
High-performance, accessible React button components built for modern applications and websites. These buttons are built using React Aria and styled with Tailwind CSS.Example
Installation
You can add this button component using our CLI or manually:Variations
Below are the different styles and states available for the Button component:Primary
Secondary
Tertiary
Link gray
Link color
We’ve designed our button components to be “hybrid,” meaning they can function as either a link or a standard button with ease. This offers several benefits, for example, there are many situations where you might want a link that behaves like a button, or a button that acts as a link. These two essential components work interchangeably, so it was important for us to make them easy to use. You can turn the button component into an anchor by simply passing thehref prop. When the href prop is present, the button component uses the Link component from React Aria under the hood instead of Button. This means you can pass any props or attributes that an anchor tag would accept when href is provided.