Lift Pill

About this component

Lift Pill

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.

Usage

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

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 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
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