Hidden Content Check

Hidden Content Check is a copy-paste React component that stops hidden tab leaked staff names before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/hidden-content-check
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 2 extra npm packages
  • A11y guidance in docs

StopsHidden tab leaked staff names

Reply to FOI request #0841

“How many officers hold each rank?” · published on WhatDoTheyKnow

Was this component page useful?

How do I install Hidden Content Check?

pnpm dlx shadcn@latest add @bollard/hidden-content-check

The files land in your project. They're yours to edit.

How do I use Hidden Content Check in React?

hidden-content-check-usage.tsx
import { HiddenContentCheck, type HiddenFinding } from "@/components/ui/hidden-content-check"

<HiddenContentCheck
  file={file}
  audience="anyone on the internet"
  onRemove={remove}
  onShare={async () => {
    await new Promise((r) => setTimeout(r, 600))
    setShared(true)
  }}
/>

What input mistakes does Hidden Content Check catch?

  • Hidden and very hidden sheets, with their real first rows shown
  • Hidden rows and columns, hidden text and tracked deletions
  • Comments, speaker notes and hidden slides
  • Embedded workbooks (for example a chart's source data in a deck)
  • Links to internal drives and author metadata
  • Share pressed with items still open: asks for a second press

What props does Hidden Content Check accept?

HiddenContentCheck props
PropTypeDefault
file* (required)

The .xlsx, .docx or .pptx about to be shared. `null` clears the check.

File | Blob | null | undefined—
fileName

Name to show when `file` is a Blob without one.

string—
audience

Who will receive it, e.g. "the public". Named in the summary when set.

string—
onShare

Shares the file. May return a Promise; the button shows a pending state and can't fire twice.

(report: HiddenReport) => void | Promise<void>—
onRemove

Removes one finding and returns the cleaned file. The result is re-checked before it counts.

(finding: HiddenFinding, file: File | Blob) => Promise<File | Blob>—
onReportChange

Fires with each report, including after a removal.

(report: HiddenReport) => void—
messages

Override any visible string, including per-kind finding text.

Partial<Omit<Messages, "kind">> & { kind?: Partial<Record<HiddenKind, string>> }—

* required. Also accepts the native props of <section> (className, aria-*, data-*…), passed through to it.

How is Hidden Content Check accessible?

  • Results are labelled by the summary; each finding is a focusable labelled region
  • Expanders use aria-expanded and aria-controls; remove buttons show aria-busy while working
  • Errors use role=alert; focus moves to the next open finding or the share button
  • Animations are skipped under reduced motion

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

This is a UX guard rail. Enforce on the server: If files are shared through your servers, scan and strip metadata there too; the client check can be skipped.

  • Office Open XML only (.xlsx, .docx, .pptx); not .xls, .doc, PDF or images
  • Removal is done by your onRemove; the component re-checks whatever file you hand back
  • Does not detect sensitive data in visible cells, or white-on-white text

What expensive mistakes does Hidden Content Check stop?

Hidden tab leaked staff names

Also known as

xlsx · docx · pptx · excel · word · powerpoint · document inspector · metadata

Field type

What dependencies does Hidden Content Check require?

Hidden Content Check facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameHidden Content Check
Registry identifier@bollard/hidden-content-check
Install commandnpx shadcn@latest add @bollard/hidden-content-check
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react, motion
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Hidden Content Check

What form validation mistake does Hidden Content Check catch?

Hidden Content Check prevents hidden tab leaked staff names. Opens an .xlsx, .docx or .pptx in the browser before it is shared and lists what is hidden inside: sheets, rows, comments, notes, tracked deletions, author details. Catches: Hidden and very hidden sheets, with their real first rows shown, Hidden rows and columns, hidden text and tracked deletions, Comments, speaker notes and hidden slides, Embedded workbooks (for example a chart's source data in a deck), Links to internal drives and author metadata, Share pressed with items still open: asks for a second press. Limitation: validate hidden-content-check schemas on backend.

How do I install hidden-content-check with shadcn?

Run `npx shadcn@latest add @bollard/hidden-content-check`. Sources added: registry/default/hidden-content-check/hidden-content-check.tsx, registry/default/hidden-content-check/inspect.ts. Package requirements: lucide-react, motion.

What props customize Hidden Content Check?

Hidden Content Check accepts `file`, `fileName`, `audience`, `onShare`, `onRemove`. Configures xlsx, docx, pptx behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of hidden-content-check?

Office Open XML only (.xlsx, .docx, .pptx); not .xls, .doc, PDF or images. Removal is done by your onRemove; the component re-checks whatever file you hand back. Does not detect sensitive data in visible cells, or white-on-white text Server requirement: If files are shared through your servers, scan and strip metadata there too; the client check can be skipped.

How does Hidden Content Check meet accessibility guidelines?

Results are labelled by the summary; each finding is a focusable labelled region. Expanders use aria-expanded and aria-controls; remove buttons show aria-busy while working. Errors use role=alert; focus moves to the next open finding or the share button. Animations are skipped under reduced motion. Minimizes errors: hidden sheet in shared spreadsheet, tracked changes left in document.

Which components pair with Hidden Content Check?