Installation
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | "Browse Components" | Default text to display |
hoverText | string | Same as text | Text to show on hover |
href | string | "/docs/cards/card" | Link destination |
variant | "default" | "ghost" | "default" | Visual style variant |
className | string | - | Additional CSS classes |
Variants
Default
Solid black background (white in dark mode) with white text (black in dark mode).Ghost
Transparent background with border, subtle hover effect.Dependencies
motion/react(Framer Motion) - For text slide animation and entrance effectnext/link- For client-side navigation@/lib/utils- Utility functions (cn)
Features
- Vertical text slide animation on hover
- Two visual variants (default and ghost)
- Smooth opacity and transform transitions
- Entrance animation (slides from right)
- Responsive width with minimum size
- Integrated Next.js Link component
- Dark mode support
- Works as anchor element with full accessibility