Get Started
Components
- Accordion
- Alert Dialog
- Alert
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button Group
- Button
- Card
- Carousel
- Checkbox
- Collapsible
- Combobox
- Command
- Container
- Context Menu
- Data Table
- Dialog
- Drawer
- Dropdown Menu
- Empty
- Field
- Flex
- Form
- Grid
- Hero Button
- Hover Card
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Responsive
- Scroll Area
- Segmented Control
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spacer
- Spinner
- Squircle
- Switch
- Table
- Tabs
- Textarea
- Theme Toggle
- Toggle Group
- Toggle
- Tooltip
- Typography
- Unicorn Wrapper
Animations
- Background Image Parallax
- Card Swipe Carousel
- Cards Parallax
- Parallax Scroll
- Perspective Carousel
- Perspective Section Transition
- Scroll Expand
- Scroll Fade
- Scroll Scale
- Slide Down
- Slide Up
- Smooth Parallax Scroll
- Smooth Scroll
- Sticky Footer
- Text Along Path
- Text Gradient Opacity
- Text Parallax
- Transforms 3d
- Zoom Parallax
import { HeroButton } from "@/components/ui/hero-button"
export function HeroButtonDemo() {
return <HeroButton>Start Copy Pasting</HeroButton>
}
<HeroButton>Start Copy Pasting</HeroButton>Installation
pnpm dlx pitsi@latest add hero-button
Usage
import { HeroButton } from "@/components/ui/hero-button"<HeroButton>Get Started</HeroButton>Examples
Default
import { HeroButton } from "@/components/ui/hero-button"
export function HeroButtonDemo() {
return <HeroButton>Start Copy Pasting</HeroButton>
}
<HeroButton>Start Copy Pasting</HeroButton>With Link
Use the asChild prop to render as a link.
import Link from "next/link"
<HeroButton asChild>
<Link href="/docs">Get Started</Link>
</HeroButton>Custom Variant
You can pass any Button variant prop.
<HeroButton variant="secondary">Learn More</HeroButton>API Reference
HeroButton
The HeroButton component extends the Button component with a rounded pill shape and an arrow icon.
| Prop | Type | Default |
|---|---|---|
variant | "default" | "outline" | "ghost" | "destructive" | "secondary" | "link" | "default" |
asChild | boolean | false |
className | string | - |
children | React.ReactNode | - |