UI Components
Link Button
A button styled as a link with Next.js routing support
Quick Preview
Installation
// Copy the LinkButton component fromsrc/components/ui/LinkButton.tsx
Usage
import { LinkButton } from '@/components/ui/LinkButton'export default function MyComponent() {return (<LinkButton href="/about" variant="primary">Learn More</LinkButton>)}
Examples
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
href* | string | - | URL to navigate to |
variant | "primary" | "secondary" | "outline" | "ghost" | "primary" | Visual style variant |
size | "sm" | "md" | "lg" | "md" | Size of the button |
external | boolean | - | Open link in new tab with security attributes |
Features
- โAutomatic Next.js Link for internal navigation
- โExternal link support with target="_blank"
- โSame styling as Button component
- โSecurity attributes for external links