Skip to content

Panel DeprecatedJSTwig

Deprecated

The Panel component is deprecated and will be removed in a future release. Use the Dialog component instead — a drawer is a documented Dialog pattern, see 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, 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'
} %}