Button
Displays a button or a component that looks like a button.
pnpm dlx velaui add @velaui/buttonnpx shadcn@latest add @velaui/buttonyarn dlx shadcn@latest add @velaui/buttonbunx --bun shadcn@latest add @velaui/buttonTypes
- Primary
- Secondary
- Outline
- Ghost
- Destructive
- Link
Sizes
States
Usage
Props
| Prop | Type | Default |
|---|---|---|
type | "primary" | "secondary" | "outline" | "ghost" | "destructive" | "link" | "primary" |
size | "xs" | "sm" | "md" | "lg" | "xl" | "md" |
shape | "text" | "icon" | "text" |
leadingIcon | ReactNode | — |
trailingIcon | ReactNode | — |
disabled | boolean | false |