Soft Action Button

About this component

Soft Action Button

A compact, softly rounded action button with a solid accent, soft neutral, or hairline outline tone and an optional trailing icon.

Usage

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")}
/>

Props

Read from the component's own type, so this cannot drift from what it accepts.

PropTypeDefaultDescription
label*string—Button label
asChildboolean—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.
childrenReact.ReactElement—The element to render when `asChild` is set (e.g. your framework's Link)
hrefstring—Fallback link: renders a plain `<a>`. Prefer `asChild` with your framework's Link component for client-side navigation.
iconLucideIcon—Optional trailing icon
tone"primary" | "neutral" | "outline"—Surface tone: solid accent (default), soft neutral pill, or hairline outline
onClickReact.MouseEventHandler<HTMLButtonElement>—Click handler (used when there is no href and no asChild)
classNamestring—Additional classes merged onto the button

More Button components

View all Button