# Components Badge: Ribbon Badge

A badge styled as a corner ribbon that drapes over a card edge. Use it to flag sale, new, or sold out states across product and gallery tiles.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/badges/ribbon-badge
- Collection: [Components](https://www.shadcn-ui-blocks.com/blocks/components), Free tier
- Group: [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/components/badges/ribbon-badge.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-badges-ribbon-badge
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/components-badges-ribbon-badge.json"`.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: badge
- Installs to: `@/components/blocks/components/badges/ribbon-badge`

## About this block

Ribbon Badge shows four badge variants side by side in a centered,
wrapping row. Each badge has a short left tab, a narrow vertical strip
that shares the badge color and sits just behind the left edge, giving
the whole unit the look of a folded ribbon end. The four variants are
Default, Secondary, Destructive, and Outline, so you can see the ribbon
treatment across the full badge color range at once.

Each badge is self-contained and independent. You can drop any single
variant into your layout, swap the label text, or remove variants you do
not need. The tab strip automatically matches whichever color token the
badge uses, so the ribbon effect holds without extra work when you change
the variant.

## When to use

Reach for this block when a flat pill badge reads as too ordinary for
the context. In a project management workspace it works well on card
grids where tasks, sprints, or deliverable groups need a status label
that stands apart from surrounding text. The ribbon shape draws the eye
to the tag without relying on size or animation, which keeps busy board
views readable.

A natural flow around it on a Components page:

**Before**

- [Elevated Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/elevated-badge) to show a
  subtler raised treatment before introducing the ribbon cut
- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) as the surface the ribbon badge
  will actually sit on in production

**After**

- [Icon Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/icon-badge) to layer in a
  small icon alongside the label for richer status meaning
- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) to browse the full set and
  pick the right weight for your grid

## What you can customize

Any of the four variants can be used alone or together to mark
distinct states across a card grid or list view.

- **Default and Destructive variants.** Pair these two to split items
  into active and blocked states so reviewers can triage at a glance.
- **Secondary and Outline variants.** Use these for lower-priority tags
  like "on hold" or "draft" that need to stay visible without competing
  with primary status labels.
- **Label text.** Replace the variant name with real copy such as
  "New", "Blocked", or a sprint name to match your workspace terminology.

> Tip: position the ribbon badge at the top-left of a card rather than
> inline in text so the tab strip has a clean edge to hang against.

## More in Components Badges

- [3D Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/3d-badge)
- [Bounce Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/bounce-badge)
- [Dot Indicator Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/dot-indicator-badge)
- [Elevated Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/elevated-badge)
- [Extra Large Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/extra-large-badge)
- [Gradient Border Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/gradient-border-badge)
- [Hover Scale Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/hover-scale-badge)
- [Icon Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/icon-badge)
- [Large Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/large-badge)
- [Pulse Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/pulse-badge)
- [Square Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/square-badge)
