# Share Dialog

> A modal share-link dialog built on the native `<dialog>` element — copy-to-clipboard with confirmation, a teammate access list, and a permission selector, fully token-driven and design-system agnostic.

- Category: Dialog
- Frameworks: Vanilla, React + CSS, React + Tailwind
- Design system: Triangulum
- Dark mode: yes
- Access: premium (Atheros AI Pass)
- Tags: modal
- Page: https://builder.atheros.ai/components/share-dialog
- Preview: https://d17nmjscumqk5d.cloudfront.net/builder/templates/tpl_builder_share_dialog/preview-d6fc545d007b.webp

## Features

- Native `<dialog>` element with built-in Escape-to-close and focus trapping
- Backdrop scrim click-to-close with focus return to the trigger button
- Copy-to-clipboard link field with a transient "Copied!" confirmation state
- Teammate access list rendered safely via `textContent` (no external sanitizer)
- Permission selector for link-level access (view, edit, owner)
- Responsive layout that reflows the copy row down to 320px and respects reduced motion

## Accessibility

- **Dialog semantics** — `role="dialog"`, `aria-modal="true"`, `aria-labelledby` on the title
- **Close button** — `<button>` with `aria-label`
- **Copy button** — `<button>` with `aria-label` updated on copy
- **Form inputs** — Associated `<label>` via `for`/`id` for input and select
- **Focus management** — Escape and backdrop close return focus to the trigger
- **Focus indicators** — `:focus-visible` with the accent `--ring` outline on all elements
- **Hover / selected** — Accent border (`--shr-accent`) plus the soft accent fill, never a neutral grey — state is never colour-only, the border also appears/thickens
- **Reduced motion** — `prefers-reduced-motion: reduce` disables all animations

## Keyboard shortcuts

- `Escape` — Close the dialog (native `<dialog>` behavior)

## Common questions

**Which frameworks is Share Dialog available in?**

Share Dialog 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 Share Dialog free?**

Share Dialog is a premium component. Anyone can preview it; the source, downloads and AI customisation are included with Atheros AI Pass.

**Does Share Dialog support dark mode?**

Yes. Share Dialog ships light and dark themes, both drawn from the Triangulum design system's tokens. Switch the preview to dark mode to compare them.

## Get the code

Preview Share Dialog 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/share-dialog

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
