Animated Button
A button with a shiny border and text reveal effect, perfect for calls to action.
Install using CLI
npx shadcn@latest add "https://vengeance-ui.vercel.app/r/animated-button.json"Install Manually
1
Install dependencies
2
Add util file
lib/utils.ts
3
Copy the source code
Copy the code below and paste it into components/ui/animated-button.tsx
Usage
Props
| Prop Name | Type | Default | Description |
|---|---|---|---|
| children | React.ReactNode | 'Browse Components' | The content to be displayed inside the button. |
| className | string | '' | Additional CSS classes to apply to the button. |
| whileTap | TargetAndTransition | { scale: 0.97 } | Framer Motion animation properties for the tap (click) state. |
| transition | Transition | { ...spring } | Framer Motion transition configuration. |