App Privacy Label
ProNewWhat an app collects, in the three-part form app stores use: data used to track you, linked to you and not linked to you, with a single clear statement when nothing is collected.
Installation
pnpm dlx shadcn@latest add @viewport/app-privacy-label
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 |
|---|---|---|
| title | stringThe heading. | "App privacy" |
| groups* | PrivacyGroup[]What the app collects, by how it is used. Pass an empty list when it collects nothing. | — |
| policyHref | stringWhere the full policy is. | — |
Accessibility
- A labelled section with a heading per group.
- Each group explains itself in a sentence, not only an icon.
- Groups stack on narrow containers.
- Server component with no client JavaScript.