--- url: /reference/items/Modal.md --- # Modal ::: warning Deprecated The `Modal` component is deprecated and will be removed in a future release. Use the [`Dialog`](/reference/items/Dialog/) component instead — it is headless, built on the native `` element and driven by [`Action`](/reference/items/Action/). ::: The `Modal` component creates accessible modal dialogs with focus management, keyboard navigation, and customizable styling. ## Usage After you install the [package](/guide/installation/), include the template in your project: ```js import { registerComponent } from '@studiometa/js-toolkit'; import { Modal } from '@studiometa/ui'; registerComponent(Modal); ``` ```twig {% include '@ui/Modal/Modal.twig' with { content: 'Your modal content here' } %} ```