Award Badge
ProNewA 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
| Prop | Type | Default |
|---|---|---|
| issuer* | stringWho gave the honor, e.g. a legal directory or a bar association. | — |
| name* | stringThe honor itself, e.g. "Lawyer of the Year". | — |
| category | stringWhat it was given for, e.g. a practice area or a region. | — |
| year | number | — |
| 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" |
| tone | keyof typeof tonesThe field color. Every tone is paired with gold except `platinum`. | "navy" |
| size | keyof typeof sizes | "md" |
| className | string | — |
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.