Firm Card
ProNewA firm in a directory: a monogram and a serif name, where it is based, a few figures, its leading practices and its rankings. The whole card is one link.
Installation
pnpm dlx shadcn@latest add @viewport/firm-card
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 |
|---|---|---|
| name* | string | — |
| href | stringWhere the firm's page lives. The name becomes a link that covers the card. | — |
| logo | React.ReactNodeA logo. A monogram of the name is set without one. | — |
| headquarters | stringWhere the firm is based. | — |
| summary | stringA sentence on what the firm is known for. | — |
| stats | { label: string; value: string }[]Up to four figures, e.g. attorneys, offices, the year founded. | [] |
| practices | string[]The firm's strongest practices. | [] |
| recognition | React.ReactNodeBadges for the firm's standing, e.g. Ranking Badge marks or an Award Badge. | — |
Accessibility
- An article named after the firm; the name is a heading and the link.
- Figures are a description list.
- Badges stay reachable above the card's link.
- No client JavaScript.