Button

A simple customizable button component with a variety of variants to choose from.

NOTE: This is a starting point for the Button component. You can customize it according to your needs, we are adding more variants as you read this guide, so stay tuned for more updates.

Examples

Installation

npx shadcn@latest add "https://aetherui.in/c/button.json"

Component Props

You can customize the content of the button by passing the following props to the component.

PropTypeDefaultDescription
childrenReactNodeContent to be displayed inside the button.
classNamestringAdditional class names to be applied to the button.
variantdefault | destructive | successdefaultVariant of the button.
sizedefault | sm | lg | icondefaultSize of the button.
...propsanyAdditional props to be passed to the button.

Credits

This one is all goes to shadcn for the original idea and implementation we are building variants on top of it.