A sentence-case pill that lifts a little on hover: the bright secondary fill, the primary fill, a hairline outline in the surface's text color, or a frosted pill for dark grounds. Three heights, and an optional icon that nudges forward after the label or sits before it.
The import and the props worth knowing about, in one place.
import { Button26 } from "@/components/beste/component/button26";
import { ArrowRight, Play } 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.
<Button26 label="Start free" icon={ArrowRight} size="lg" render={<Link href="/signup" />} nativeButton={false} />
<Button26
label="See how it works"
tone="glass" // "secondary" (default) | "primary" | "outline" | "glass"
size="lg" // "sm" | "default" | "lg"
icon={Play}
iconPosition="start" // "end" (default) | "start"
onClick={() => console.log("clicked")}
/>Read from the component's own type, so this cannot drift from what it accepts.
| Prop | Type | Default | Description |
|---|---|---|---|
label* | string | — | Button label, in sentence case |
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. |
icon | LucideIcon | — | Optional icon; after the label it nudges forward on hover |
iconPosition | "start" | "end" | — | Which side of the label the icon sits on |
tone | "secondary" | "primary" | "outline" | "glass" | — | The bright secondary fill, the primary fill, a hairline outline in the current text color, or a frosted pill for dark surfaces |
size | "sm" | "default" | "lg" | — | Pill height: compact for bars, default, or large for heroes |
type | "button" | "submit" | — | Submit a surrounding form instead of acting as a plain button |
onClick | React.MouseEventHandler<HTMLButtonElement> | — | Click handler (used when there is no href and no asChild) |
className | string | — | Additional classes merged onto the button |