Sheet

Edit profile

Make changes to your profile here. Click save when you’re done.

Usage

Include CSS

@import "tailwindcss";
@import "5h3ll-ui/vega.css";

Or import only the base CSS, Sheet component CSS, and one style pack.

@import "tailwindcss";
@import "5h3ll-ui/base.css";
@import "5h3ll-ui/components/sheet.css";
@import "5h3ll-ui/styles/vega.css";

Include JavaScript

<script src="/assets/js/all.min.js" defer></script>

Or copy the runtime and Sheet script separately.

<script src="/assets/js/5h3ll-ui.min.js" defer></script>
<script src="/assets/js/sheet.min.js" defer></script>

Add your sheet HTML

5h3ll-ui Sheet uses native <dialog> just like Drawer, but provides the stable side-panel API that maps more directly to upstream shadcn/ui Sheet examples.

<dialog class="sheet" aria-labelledby="sheet-title" aria-describedby="sheet-description">
  <article>
    <form method="dialog">
      <button type="submit" aria-label="Close">...</button>
    </form>
    <header>
      <h2 id="sheet-title">Edit profile</h2>
      <p id="sheet-description">Make changes to your profile here.</p>
    </header>
    <section>...</section>
    <footer>
      <button type="button" class="btn">Save changes</button>
    </footer>
  </article>
</dialog>

HTML structure

<dialog class=“sheet” data-side=“right|left|top|bottom”>
Native modal sheet. Omit data-side for the default right-side sheet.
<article>
Sheet content surface.
<form method=“dialog”> Optional
Recommended close control wrapper for the top corner button.
<header>, <section>, <footer> Optional
Standard content regions for title, body, and actions.

JavaScript API

The Sheet script decorates the native dialog with:

  • animated close that waits for the exit transition
  • Escape handling through the dialog cancel event
  • backdrop click close without relying on extra wrappers

Examples

Sides

Notifications

Manage alerts and delivery methods.

Right is the default Sheet placement.

Navigation

Use a left-side sheet for app navigation or filters.

This side mirrors correctly in RTL layouts.

Release summary

Top sheets work well for compact summaries and announcements.

Quick actions

Bottom sheets are useful on mobile-sized layouts.