A compact, softly rounded action button with a solid accent, soft neutral, or hairline outline tone and an optional trailing icon.
The import and the props worth knowing about, in one place.
import { Button21 } from "@/components/beste/component/button21";
import { ArrowRight } 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.
<Button21 label="Book a demo" render={<Link href="/demo" />} nativeButton={false} />
<Button21
label="Start free"
icon={ArrowRight} // optional trailing icon
tone="outline" // "primary" (default) | "neutral" | "outline"
onClick={() => console.log("clicked")}
/>Turn the props on the right; the snippet under them is what you would write to get what you see.
import { Button21 } from "@/components/beste/component/button21";
<Button21
label="Book a demo"
/>Read from the component's own type, so this cannot drift from what it accepts.
| Prop | Type | Default | Description |
|---|---|---|---|
label* | string | — | Button label |
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 | — | Optional trailing icon |
tone | "primary" | "neutral" | "outline" | — | Surface tone: solid accent (default), soft neutral pill, or hairline outline |
onClick | React.MouseEventHandler<HTMLButtonElement> | — | Click handler (used when there is no href and no asChild) |
className | string | — | Additional classes merged onto the button |
An accessible icon button with a required label, three sizes, and circle or square shape.
A minimal text button with an animated underline and arrow for lightweight calls to action.
A video play button with a circular play seal, label, and duration for showreels and product demos.