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

Firm Card

ProNew

A 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

PropTypeDefault
name*string—
hrefstring

Where the firm's page lives. The name becomes a link that covers the card.

—
logoReact.ReactNode

A logo. A monogram of the name is set without one.

—
headquartersstring

Where the firm is based.

—
summarystring

A sentence on what the firm is known for.

—
stats{ label: string; value: string }[]

Up to four figures, e.g. attorneys, offices, the year founded.

[]
practicesstring[]

The firm's strongest practices.

[]
recognitionReact.ReactNode

Badges 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.