Badge

An ID badge on a lanyard. Grab it and swing it. When you let go it settles back on a loose spring.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

Badge3D props

PropTypeDefaultDescription
childrenReactNodeContent shown on the badge face.
widthnumber190Badge width in px.
heightnumber270Badge height in px.
strapnumber150Lanyard length in px.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks