Presenter Mode

Presenter Mode is a copy-paste React component that stops leaked a key on a screen share 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/presenter-mode
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsLeaked a key on a screen share

Was this component page useful?

How do I install Presenter Mode?

pnpm dlx shadcn@latest add @bollard/presenter-mode

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

How do I use Presenter Mode in React?

presenter-mode-usage.tsx
import { PresenterModeProvider, PresenterToggle, PresentingBar, Sensitive } from "@/components/ui/presenter-mode"

<PresenterToggle />

What input mistakes does Presenter Mode catch?

  • Sensitive values visible during a screen share
  • Blur that can be reversed or read: values are removed, not blurred
  • Value length given away: masks are fixed-length
  • Screen share started in this tab: suggests presenting mode

What props does Presenter Mode accept?

PresenterModeProvider props
PropTypeDefault
value

Controlled presenting state.

boolean—
defaultValue

Start in presenting mode when uncontrolled.

booleanfalse
onValueChange

Called when presenting mode turns on or off.

(presenting: boolean) => void—
detectScreenShare

Offer presenter mode when this tab starts sharing via `getDisplayMedia`.

booleantrue
children* (required)

Content to show; wrap values in <Sensitive>.

React.ReactNode—

* required.

How is Presenter Mode accessible?

  • Masked values are focusable buttons with an aria-label naming the kind of value
  • Peek works by holding Space or Enter
  • Presenting bar uses role=status; icons are aria-hidden

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

What are the limitations and server boundaries?

  • Only hides values you wrap in <Sensitive>
  • Can detect only screen shares started from this tab with getDisplayMedia, not ones started in another app
  • Peeking shows the value to the audience too

What expensive mistakes does Presenter Mode stop?

Leaked a key on a screen share

Also known as

screen share · presenter mode · streamer mode · zoom · google meet · demo mode · mask · privacy

What dependencies does Presenter Mode require?

Presenter Mode facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component namePresenter Mode
Registry identifier@bollard/presenter-mode
Install commandnpx shadcn@latest add @bollard/presenter-mode
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
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 Presenter Mode

What form validation mistake does Presenter Mode catch?

Presenter Mode prevents leaked a key on a screen share. Removes marked emails, amounts and keys from the page while presenting, so they don't leak on a screen share. Catches: Sensitive values visible during a screen share, Blur that can be reversed or read: values are removed, not blurred, Value length given away: masks are fixed-length, Screen share started in this tab: suggests presenting mode. Limitation: validate presenter-mode schemas on backend.

How do I install presenter-mode with shadcn?

Run `npx shadcn@latest add @bollard/presenter-mode`. Sources added: registry/default/presenter-mode/presenter-mode.tsx. Package requirements: lucide-react.

What props customize Presenter Mode?

Presenter Mode accepts `value`, `defaultValue`, `onValueChange`, `detectScreenShare`, `children`. Configures screen share, presenter mode, streamer mode behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of presenter-mode?

Only hides values you wrap in <Sensitive>. Can detect only screen shares started from this tab with getDisplayMedia, not ones started in another app. Peeking shows the value to the audience too Server requirement: backend verification for presenter-mode.

How does Presenter Mode meet accessibility guidelines?

Masked values are focusable buttons with an aria-label naming the kind of value. Peek works by holding Space or Enter. Presenting bar uses role=status; icons are aria-hidden. Minimizes errors: api key visible on zoom, screen share leaked email.

Which components pair with Presenter Mode?