An editorial pill button with a rolling label and animated icon seal on hover.
Adds the component and everything it depends on to your project.
npx shadcn add https://ui.beste.co/component/r-base/button12New here? Read the installation guide.
The import and the props worth knowing about, in one place.
import { Button12 } from "@/components/beste/component/button12";
import { Phone } from "lucide-react";
import Link from "next/link";
// Compose the link with the render prop: your Link becomes the rendered
// element and the button content stays as its children.
<Button12 label="Book an intro call" render={<Link href="/contact" />} />
<Button12
label="See our work"
icon={Phone} // seal icon (default: ArrowUpRight)
tone="outline" // "dark" (default) | "primary" | "outline"
onClick={() => console.log("open modal")}
/>Turn the props on the right; the snippet under them is what you would write to get what you see.
import { Button12 } from "@/components/beste/component/button12";
<Button12
label="Book an intro call"
/>Read from the component's own type, so this cannot drift from what it accepts.
| Prop | Type | Default | Description |
|---|---|---|---|
label* | string | — | Button label (rendered uppercase) |
asChild | boolean | — | Compose the rendered element shadcn-style (radix asChild): your element (e.g. a router Link) becomes the root and the button content is injected as its children. Pass the element without children of its own. |
children | React.ReactElement | — | The element to render when `asChild` is set (e.g. your framework's Link) |
href | string | — | Fallback link: renders a plain `<a>`. Prefer `asChild` with your framework's Link component for client-side navigation. |
icon | LucideIcon | — | Seal icon (defaults to ArrowUpRight) |
tone | "dark" | "primary" | "outline" | — | Surface tone: solid dark (default), solid primary, or bordered outline |
onClick | React.MouseEventHandler<HTMLButtonElement> | — | Click handler (used when there is no href and no asChild) |
className | string | — | Additional classes merged onto the button |
A pill button whose label rolls up letter by letter with a staggered hover animation.
A premium pill button with a diagonal shine sweep on hover for pricing and upgrade actions.