{% extends "base.html" %} {% block title %}Slide-over Drawers (Sheets) - Design System Wiki{% endblock %} {% block content %}
{% include "components/sidebar.html" %}
Overlays

Slide-over Drawers (Sheets)

Right-anchored slide-out sheets designed for detail inspections, metadata lists, settings panels, and form workflows.

Drawer Showcase & Integration

How the Global Sheet JS Works

The global script components.js monitors specific attributes and classes on page load. Here is the operational contract for sheets:

Selector / Class Type Behavior & Purpose
[data-sheet-target] Attribute Applied to buttons or triggers. The value must match the ID of the sheet container (e.g., data-sheet-target="my-sheet"). Clicking it triggers openSheet("my-sheet").
.sheet-dialog Class The outer wrapper sheet container. Starts with the class hidden. Toggled by the script.
.sheet-content Class The inner slide-over panel card. The JS toggles transition translation classes (removes translate-x-full and adds translate-x-0 on show).
.sheet-backdrop Class The backdrop overlay. The JS toggles its opacity and registers clicks on it to automatically close the sheet.
.sheet-close Class Applied to close trigger buttons. Clicking any element with this class closes the sheet.
💡 What is customizable?

You can freely style the placement, width, colors, borders, and contents of the .sheet-content slide-out panel. The functional slide classes (translate-x-full and translate-x-0) and semantic structure class names must be preserved so the script can locate and slide the sheets dynamically.

{% endblock %}