UI
Button
Customizable button component with multiple variants and sizes
Preview
<Button>Default Button</Button>
<Button variant="outline">Outline Button</Button>
<Button variant="ghost">Ghost Button</Button>
Props
The Button component accepts the following props:
Prop
Type
Installation
npx shadcn@latest add button
If you encounter issues, check the registry setup guide for configuration help.
Registry Dependencies
This component has no registry dependencies.
Dependencies
This component requires the following NPM packages:
- React - JavaScript library for building user interfaces
- @radix-ui/react-slot - Radix UI primitives