--- url: /reference/items/Panel.md --- # Panel ::: warning Deprecated The `Panel` component is deprecated and will be removed in a future release. Use the [`Dialog`](/reference/items/Dialog/) component instead — a drawer is a documented `Dialog` pattern, see [Building a drawer](/reference/items/Dialog/#building-a-drawer). ::: The `Panel` component extends the `Modal` component to create slide-in panels from any edge of the screen with animations. ## Usage After you install the [package](/guide/installation/), include the template in your project: ```js import { registerComponent } from '@studiometa/js-toolkit'; import { Panel } from '@studiometa/ui'; registerComponent(Panel); ``` ```twig {% include '@ui/Panel/Panel.twig' with { position: 'right', content: 'Your panel content here' } %} ```