# Components Badge: 3D Badge

A badge with layered shadows and depth that lifts off the surface. Use it to spotlight a featured tag or premium label that needs to stand out.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/badges/3d-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/3d-badge.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-badges-3d-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-3d-badge.json"`.

## Depends on

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

## About this block

3D Badge renders four badge variants side by side in a centered, wrapping
row: Default, Secondary, Destructive, and Outline. Each badge carries a
shallow offset shadow that makes it sit above the surface. When a pointer
moves over a badge it lifts slightly and the shadow deepens, reinforcing
the raised appearance.

The four variants are independent. You can swap any label text, drop
variants you do not need, or reorder them without touching the others.
The hover lift is purely visual, so none of the badges require an
onClick handler unless you add one.

## When to use

Reach for this block when a label needs physical weight, not just color.
On a logistics and delivery platform it works well for shipment status
tags where "In Transit," "Delivered," and "Exception" must read as
distinct objects at a quick scan rather than flat text annotations. The
lift on hover gives operators a clear affordance if the badges are also
clickable filters.

A natural flow around it on a Components page:

**Before**

- [Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons) to establish the interactive
  component language before introducing smaller labeled elements
- A short heading or description row to explain what the status labels
  mean in context

**After**

- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) where the same badges can be placed
  inside tile headers to show per-item status
- [Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts) to pair status badges with
  contextual messages for the same states

## What you can customize

The block ships four variants out of the box, covering the main semantic
roles a badge fills. A few directions to take it:

- **Label text.** Replace "Default" and "Destructive" with real status
  words like "In Transit" or "Delayed" to match your domain immediately.
- **Variant selection.** Remove the Outline or Secondary variant if your
  palette only needs two or three distinct states.
- **Click behavior.** Wrap any badge in a button or link element to turn
  the visual affordance into a real filter or navigation trigger.

> Tip: if you place these badges inside a dense table or card grid, keep
> the labels to one or two words so the shadow stays visible and the lift
> reads cleanly at small sizes.

## More in Components Badges

- [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)
- [Ribbon Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/ribbon-badge)
- [Square Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/square-badge)
