# Safety Shield Popover

> An AI guardrails popover: a safety-analysis panel scoring harmful, PII, bias and toxicity risks with color-coded meter bars, a pass badge and a model latency footer, revealed from a trigger with click-outside and Escape to close.

- Category: Popover
- Frameworks: Vanilla, React + CSS, React + Tailwind
- Design system: Tensor
- Dark mode: yes
- Access: free (sign in to copy the code)
- Tags: ai
- Page: https://builder.atheros.ai/components/safety-shield
- Preview: https://d17nmjscumqk5d.cloudfront.net/builder/templates/tpl_builder_safety_shield/preview-58221204ea6e.webp

## Features

- A design-system-adaptive AI guardrails popover. Essential text always uses the design-system foreground.
- Each score exposes native meter semantics; `aria-expanded`, `aria-hidden` and `inert` remain synchronized, and the trigger keeps a 44px minimum target.
- Trigger button that toggles an anchored safety-analysis popover
- Four risk meters for harmful, PII, bias and toxicity signals
- Color-coded bars and scores by low, medium and high severity
- Pass badge summarizing the overall verdict
- Model and latency footer
- Click outside the popover or press Escape to dismiss it
- Responsive down to 240px
- Fully respects `prefers-reduced-motion`
- Static, populated first paint: the panel ships its real content in markup (no skeleton, no async fetch); init re-renders atomically from the in-file data model, so there is no empty frame or height jump on load

## Accessibility

- **Dialog role** — The popover uses `role="dialog"` with an `aria-label`
- **Trigger semantics** — The trigger has `aria-haspopup`, `aria-expanded` and `aria-controls`
- **Decorative visuals** — The arrow is `aria-hidden`
- **Focus indicators** — `:focus-visible` with `--ring` outline on all interactive elements
- **Reduced motion** — `prefers-reduced-motion: reduce` disables all animations

## Keyboard shortcuts

- `Escape` — Close the popover and restore focus to the trigger

## Common questions

**Which frameworks is Safety Shield Popover available in?**

Safety Shield Popover ships as Vanilla, React + CSS and React + Tailwind — HTML, CSS, JS and React source you can copy, download or clone into Atheros AI Builder.

**Is Safety Shield Popover free?**

Yes. Safety Shield Popover is a free component: preview it without an account, and sign in with a free Atheros account to copy or download the full source and customise it with AI.

**Does Safety Shield Popover support dark mode?**

Yes. Safety Shield Popover ships light and dark themes, both drawn from the Tensor design system's tokens. Switch the preview to dark mode to compare them.

## Get the code

Preview Safety Shield Popover live, then sign in to copy or download the source, apply another design system, or ask the AI assistant to change it: https://builder.atheros.ai/components/safety-shield

Every component on https://builder.atheros.ai is also reachable from Claude Code, Cursor and Codex through the Atheros MCP server (paid plans). Component index: https://builder.atheros.ai/llms-components.txt
