Compliance Badge
ProNewBadges for SOC 2, ISO 27001, HIPAA, GDPR, PCI DSS, FedRAMP and more, as a seal, a card with the audit date, or an inline pill. Original marks, with an in-progress state that cannot be mistaken for done.
Installation
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
Props
| Prop | Type | Default |
|---|---|---|
| framework* | keyof typeof frameworksThe standard. Each has its own outline, so a row of badges can be told apart by shape. | — |
| detail | stringA qualifier set under the code, e.g. "Type II" or "Level 1". | — |
| status | "achieved" | "in-progress"`achieved` is the default. `in-progress` draws a dashed outline and says so; never show a badge as achieved before it is. | "achieved" |
| date | stringWhen it was last audited or certified, or when it is expected, already formatted. | — |
| auditor | stringWho examined it. | — |
| variant | "seal" | "card" | "inline"`seal` is the mark alone; `card` sets it beside the name, status and date; `inline` is a small pill for footers and tables. | "seal" |
| size | keyof typeof sizes | "md" |
| href | stringMakes the badge a link, e.g. to the report request or the certificate. | — |
| className | string | — |
Accessibility
- Named with the standard, its qualifier, its status and the date.
- Status is a word and an icon as well as a color; in-progress has a dashed outline.
- Each standard has its own outline shape.
- Server component with no client JavaScript.