# Modal — Spiral

> An accessible dialog that spirals into place with a compact gradient spiral badge, staggered content, keyboard support, and light and dark themes.

- Category: Modal
- Frameworks: Vanilla, React + CSS, React + Tailwind
- Design system: Ember Studio
- Dark mode: yes
- Access: premium (Atheros AI Pass)
- Tags: dialog, animation, overlay
- Page: https://builder.atheros.ai/components/modal-spiral
- Preview: https://d17nmjscumqk5d.cloudfront.net/builder/templates/tpl_builder_modal_spiral/preview-a5c5134f0cd3.webp

## Features

- Centered hero with an accessible solid-accent eyebrow, display heading, subline, and a single solid-accent call-to-action
- One accessible dialog that reveals with the signature Spiral animation
- The box unwinds from scale(0.3) rotate(-100deg) to full size and zero rotation
- Modal content — title, text, actions — staggers in with small translateY and opacity delays
- A compact gradient spiral badge (genuine Tabler `spiral` icon) overlaps the top edge and winds in as the box spins
- Clean flat-ish neutral elevation — no accent/neon glow layers — with a playful large radius carrying the creative identity
- Closes via the × button, Cancel, Got it, overlay click, or the Escape key
- Focus moves into the open dialog box and returns to the trigger on close, with a focus trap on Tab
- Responsive layout that stacks the dialog actions on small screens
- Fully respects `prefers-reduced-motion`

## Accessibility

- **Dialog semantics** — The dialog box carries `role="dialog"`, `aria-modal="true"`, and `aria-labelledby` pointing at its title
- **Hidden state** — The closed dialog is `aria-hidden="true"` and `inert`; JS flips both when opening
- **Focus management** — The dialog box (`tabindex="-1"`) receives focus on open; focus returns to the trigger on close
- **Focus trap** — Tab and Shift+Tab cycle within the dialog while it is open
- **Trigger semantics** — Native `<button>` trigger with `aria-haspopup="dialog"` and an explicit `aria-label`
- **Button labels** — Every button — close, Cancel, Got it — has an explicit `aria-label`
- **Escape hatch** — Escape key, overlay click, and three buttons all dismiss the dialog
- **Focus indicators** — Global `:focus-visible` outline using the `--ring` token
- **Reduced motion** — `prefers-reduced-motion: reduce` disables all transitions

## Keyboard shortcuts

- `Escape` — Close the open dialog
- `Enter` — Activate the focused trigger or button
- `Space` — Activate the focused trigger or button
- `Tab` — Move focus between the dialog buttons

## Common questions

**Which frameworks is Modal — Spiral available in?**

Modal — Spiral 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 Modal — Spiral free?**

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

**Does Modal — Spiral support dark mode?**

Yes. Modal — Spiral ships light and dark themes, both drawn from the Ember Studio design system's tokens. Switch the preview to dark mode to compare them.

## Get the code

Preview Modal — Spiral 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/modal-spiral

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
