Button
An action control with native semantics, loading, six variants, eight sizes, and navigation and form patterns.
Preview
This is a live example. Interact with the available controls and use the keyboard to inspect the component's states and behavior.
Loading interactive preview…
Installation
pnpm dlx aq-ui@alpha add buttonAPI reference
SSR-safeView full sourceQuick start
import { Button } from "@/components/ui/button"
<Button type="button">Save changes</Button>Exports
Button (const), ButtonProps (type), buttonVariants (const)
Registry dependencies
utils
Package dependencies
@base-ui/react@^1.7.0, class-variance-authority@^0.7.1
Files
- components/ui/button.tsx