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

Post-Quantum Badge

ProNew

An original mark for products that use post-quantum cryptography: a lattice seal with four levels, planned, ready, hybrid and native, as a seal, a lockup, a pill, or a card that names each algorithm with its standard and says whether the claim was independently checked.

Installation

pnpm dlx shadcn@latest add @viewport/pqc-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
level*PqcLevel

How far along the product is. `planned`: scheduled, not in use. `ready`: supported, off by default. `hybrid`: on by default beside classical algorithms. `native`: post-quantum by default.

—
algorithmsPqcAlgorithm[]

The algorithms in use, e.g. `["ML-KEM-768", "ML-DSA-65"]`. Named in the label and listed on the card.

[]
claims{ area: string; algorithm: PqcAlgorithm }[]

What each algorithm protects, for the card: `{ area: "Data in transit", algorithm: "X25519MLKEM768" }`.

[]
datestring

When it took effect or is expected, already formatted, e.g. "Since March 2026".

—
validationstring

Who checked the claim, e.g. a lab or a certificate number. Without it the card says the claim is self-declared.

—
variant"seal" | "lockup" | "card" | "inline"

`seal` is the mark alone; `lockup` sets it beside a line of text; `card` adds the claims; `inline` is a pill.

"seal"
taglinestring

The line beside the seal in the lockup.

"Built for post-quantum cryptography"
finish"iridescent" | "mono"

`iridescent` draws the outline in a violet-to-teal gradient; `mono` uses the text color, to sit beside other badges.

"iridescent"
sizekeyof typeof sizes"md"
hrefstring

Makes the badge a link, e.g. to the page that explains the claim.

—
classNamestring—

Accessibility

  • Named with the level, the algorithms and the date.
  • The level is a word and a count of pips as well as a color; planned has a dashed outline.
  • The card states when a claim is self-declared.
  • The seal draws once and ripples under a pointer; both are off under reduced motion.
  • Server component with no client JavaScript.