Quiet Pill

About this component

Quiet Pill

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.

Usage

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

Props

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

PropTypeDefaultDescription
label*string—Button label, in sentence case
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.
iconLucideIcon—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
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