Button
Overview
A set of pre-designed buttons including gradient, outline, loading, and icon styles.
This action component is intended for interfaces that need a set of pre-designed buttons including gradient, outline, loading, and icon styles, SaaS workflows, and onboarding flows. Its implementation is provided as editable source so the final behavior and styling stay inside your project.
Technologies
No additional package dependency is declared for this component.
Installation
Usage
Props
| Prop | Type | Required | Description |
|---|---|---|---|
| — | No shared Props type | — | The installable source does not expose one shared custom prop contract. Review the exported TypeScript signatures for the individual variants shown on this page. |
Use cases
- interfaces that need a set of pre-designed buttons including gradient, outline, loading, and icon styles
- SaaS workflows
- onboarding flows
Features
- Copy-paste source that remains in your repository
- TypeScript source included with the component
- Tailwind CSS classes editable in the component source
- shadcn/ui dependencies: local UI primitives
- Responsive Tailwind variants present in the source
Accessibility
- The source includes ARIA attributes or roles; preserve them when customizing the component.
- Test focus order, keyboard operation, labels, contrast, and screen-reader output in the final application context.
Customization
- Edit the Tailwind utility classes in the copied source to match your spacing, color, and typography tokens.
- Edit the copied source directly for visual or structural changes.
Related components
Topic guides
See how this component fits into broader interface patterns, implementation decisions, and working examples.
Button FAQ
Is Button free to use in commercial projects?
Yes. The public Button source is available under the Apache License 2.0, including for commercial use, subject to the LICENSE terms.
How do I install Button?
Run npx shadcn@latest add button. The page also exposes the source for manual installation.
Does Button require Motion?
No Motion dependency was detected in the documented source or registry entry for Button.
Does Button use shadcn/ui or Radix UI?
Button uses local shadcn/ui primitives.
Can I use Button in Next.js?
The documented React source is used in this Next.js application. Keep its use client directive when copying it into the App Router. Install the detected dependencies and verify any application-specific data or image configuration.
What accessibility checks should I run for Button?
The source includes ARIA markup. Test the finished interface with keyboard and screen-reader workflows.