Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Award Badge

ProNew

A legal honor as the profession shows it: a framed plaque with the issuer in small capitals and the year in a metal band, a round seal ringed in metal, or the words set between laurel branches.

Installation

pnpm dlx shadcn@latest add @viewport/award-badge

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
issuer*string

Who gave the honor, e.g. a legal directory or a bar association.

—
name*string

The honor itself, e.g. "Lawyer of the Year".

—
categorystring

What it was given for, e.g. a practice area or a region.

—
yearnumber—
variant"plaque" | "seal" | "laurel"

`plaque` is the framed badge directories issue; `seal` is a round seal with a wreath; `laurel` sets the words between two branches.

"plaque"
tonekeyof typeof tones

The field color. Every tone is paired with gold except `platinum`.

"navy"
sizekeyof typeof sizes"md"
classNamestring—

Accessibility

  • Plaque and laurel are real text: readable, selectable and translatable.
  • The seal is an image named with the honor, category, issuer and year.
  • Five field colors, each checked for contrast against its ink.
  • Server component with no client JavaScript.