A plain sentence-case pill with no motion of its own: the ink fill, a hairline outline on the card color, a frosted pill for photos, the reversed pill for ink panels, a hairline in the current text color, or a fixed dark pill for light pictures in any theme. Two heights.
The import and the props worth knowing about, in one place.
import { Button27 } from "@/components/beste/component/button27";
import Link from "next/link";
<Button27 label="Start free" render={<Link href="/signup" />} nativeButton={false} />
<Button27
label="Login"
tone="outline" // "primary" (default) | "outline" | "soft" | "inverse" | "ghost" | "ink"
size="sm" // "sm" | "default"
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 |
tone | "primary" | "outline" | "soft" | "inverse" | "ghost" | "ink" | — | The ink pill, a hairline outline on the card color, a frosted pill for photos, the reversed pill for ink panels, a hairline in the current text color, or a fixed dark pill for light pictures in any theme |
size | "sm" | "default" | — | Pill height: compact for bars, or the default one for heroes and calls to action |
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 |