Announcement Badge

An announcement pill badge with a bold tag, message, and optional link arrow for hero sections.

Installation

Adds the component and everything it depends on to your project.

npx shadcn add https://ui.beste.co/component/r-base/badge21

New here? Read the installation guide.

Usage

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

import { Badge21 } from "@/components/beste/component/badge21";
import Link from "next/link";

// Compose the link with the render prop: your Link becomes the pill (and it
// shows the trailing arrow); the badge content stays as its children.
<Badge21 tag="New" text="The Auralis studio set is live" render={<Link href="/changelog" />} />

<Badge21
  tag="v2.0"
  text="Now with 1,400+ blocks"
  tone="foreground"   // tag chip: "primary" (default) | "foreground"
/>

Playground

Turn the props on the right; the snippet under them is what you would write to get what you see.

Usage
import { Badge21 } from "@/components/beste/component/badge21";

<Badge21
  tag="New"
  text="The Auralis studio set is live"
  href="#"
/>

Props

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

PropTypeDefaultDescription
tag*stringThe small emphasized tag (e.g. "New")
text*stringThe announcement text
asChildbooleanCompose the rendered element shadcn-style (radix asChild): your element (e.g. a router Link) becomes the pill and the badge content is injected as its children. Pass the element without children of its own.
childrenReact.ReactElementThe element to render when `asChild` is set (e.g. your framework's Link)
hrefstringFallback link: renders a plain `<a>`. Prefer `asChild` with your framework's Link component for client-side navigation.
tone"primary" | "foreground"Tag chip color
classNamestringAdditional classes merged onto the root

More Badge components

View all Badge
New template addedThe Auralis studio set is live

Notification Badge

A toast style notification badge with an icon tile, title, and description for product updates.

12k+active users

Stat Badge

A stat badge with an icon, bold value, and label for quick hero metrics.

Est. 2019, Berlin

Barcode Badge

A decorative barcode badge with a monospace caption for editorial and print inspired sections.

BrandingWeb designMotion3D

Tag Group Badge

A tag group badge that renders wrapping chips for services, skills, and topics.

Selin AksoyProduct Designer

Profile Badge

A profile badge with avatar, name, and role for author and team credits.

40% faster

Marker Highlight Badge

A marker highlight badge that draws a highlighter stroke behind key words in headlines.

Markdown version