Avatar Stack Button

About this component

Avatar Stack Button

A social proof button with an avatar stack inside the pill and a trailing arrow.

Usage

The import and the props worth knowing about, in one place.

import { Button6 } from "@/components/beste/component/button6";
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.
<Button6
  label="Join 2,400+ members"
  avatars={["/avatars/mia.jpg", "/avatars/deniz.jpg", "/avatars/omar.jpg"]}
  render={<Link href="/signup" />}
/>

<Button6
  label="Meet the community"
  avatars={["/avatars/ada.jpg", "/avatars/can.jpg"]}
  tone="outline"   // "dark" (default) | "primary" | "outline"
  onClick={() => console.log("meet the community")}
/>

Props

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

PropTypeDefaultDescription
label*string—Button label (e.g. "Join 2,400+ members")
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)
avatars*string[]—Avatar image URLs shown as a stack inside the pill
hrefstring—Fallback link: renders a plain `<a>`. Prefer `asChild` with your framework's Link component for client-side navigation.
tone"dark" | "primary" | "outline"—Surface tone: solid dark (default), primary, or bordered 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