shadcn.io is not affiliated with official shadcn/ui
Data Practices Table FAQ Block for React
A privacy FAQ with a framed table of what a mail service keeps, why and for how long, beside four questions about data requests, with a Download my data link.
Installation
Overview
An FAQ for React with Base UI. A header and four questions about data requests sit at the start in hairline rows, each with a plus in a ring; at the end, behind a split divider, a framed table lists what the service keeps: five rows of "What we collect", "Why" and "Kept for", with an outline "Download my data" link under it. The table scrolls inside its own frame on a phone, where it follows the questions. No date is printed: retention is stated in periods, such as 30 days. It's built from Table, Accordion, Button and Guides, with CSS transitions for the entrance and your theme's tokens for every colour. For email, storage and account products that want to say what they keep before anyone asks.
FAQ
How do I change the table and the questions?
Edit PRACTICES at the top of the file: each row has an id and the three columns, collect, why and kept. Keep each cell to a short phrase, and state retention as a period, not a date, so the table never goes stale. QUESTIONS holds the rows on the left. Have the table checked against what your service really does before you publish it.
How does the table behave?
It's our Table, in a framed card whose scroll container is a named region: below about 28 rem of width the table scrolls sideways inside it, and you can focus it and scroll with the arrow keys. The first column names each row and the cells wrap, so nothing is cut off.
Are the closed answers in the page's markup?
Yes. The Accordion takes hiddenUntilFound, so every closed answer stays in the markup as hidden="until-found", and the browser's find in page opens the answer that holds a match. The table is plain content and is always in the markup.
Related
- Pro
Schema Inspector FAQ
Code and mediaA headless-CMS FAQ with a live schema inspector: six questions beside a sticky JSON tree of the FAQPage data that expands and highlights the open question, a button to copy the JSON and one JSON-LD script.
- Pro
Last Reviewed FAQ
Proof and freshnessA FAQ for a returns portal that shows how recently each answer was reviewed, with four dots and words in a mark column, and a switch to keep this quarter's.
- Pro
Accordion FAQ
Accordion listsA side-header FAQ for a web analytics tool: the title, one sentence and a contact prompt beside seven questions in an accordion, behind a split divider.
- Pro
Revision History FAQ
Proof and freshnessA FAQ for a policy-management app whose answers carry a revision history: a Revised badge, a revision number on every row, and a switch to show only what changed.
- Pro
Fee Guide FAQ
Calculators and toolsA FAQ for a law firm with a matter-type fee guide beside its title: a select of four matters over the typical cost, time, who leads and what an instalment plan comes to, then seven numbered questions.
- Pro
Docs Links FAQ
Reading and sharingA FAQ for a mapping service where every answer ends in two guides from the docs, as links with a reading time and an arrow.