Aura UI
Back to components
buttonsButtonPrimaryTailwind

Primary Button

A reusable, accessible, and customizable primary button component.

Preview

Installation

npx aura-ui@latest add primary-button

Source Code

import { Button } from "@/components/ui/button"

export default function Example() {
  return <Button>Click me</Button>
}

Props

PropTypeDefaultDescription
classNamestring-The class name to apply to the component.
variant"primary" | "secondary" | "outline" | "ghost""primary"The logic/style variant of the button.
size"default" | "sm" | "lg" | "icon""default"The size of the button.
asChildbooleanfalseWhether to render as a child component (Slot).
childrennode-The content to display within the button.