# Astryx Dialog

> Modal dialog using the native <dialog> element. Modal and inline content starts with theme body text defaults. Ancestor surface/group membership ends as a whole, including group-owned state. Explicit props and unrelated contexts remain unchanged. Place intentional groups and complete required providers inside the dialog. With reduced motion the dialog never slides or scales in: on a touch screen it fades in, in 200 ms or less, and with a mouse it appears at once. On a phone or tablet (a coarse primary pointer), a tap or a drag that lands while the dialog is still entering reaches nothing, and the dialog finishes entering; keys and assistive technology stay live, and a mouse or a trackpad still clicks: at once when it was the last pointer used, otherwise once it moves.  Astryx by Meta. Source: https://astryx.atmeta.com/components/Dialog

- Author: [Astryx](https://21st.dev/@Astryxdesign)
- License: mit
- Tags: Form, Dialog, Modal
- npm dependencies: @astryxdesign/core, @astryxdesign/theme-neutral
- Live preview: https://21st.dev/@Astryxdesign/components/astryx-dialog

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/Astryxdesign/astryx-dialog?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/form.md
