Sheet

A modal panel for viewing or editing information alongside the current page.

Edit profile

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

Usage

Include CSS

Import Tailwind and one full Basecoat style bundle.

@import 'tailwindcss';
@import 'basecoat-css/vega.css';

For individual imports, include the base CSS, the components you use, and one style pack.

@import 'tailwindcss';
@import 'basecoat-css/base/base.css';
@import 'basecoat-css/components/button.css';
@import 'basecoat-css/components/sheet.css';
@import 'basecoat-css/styles/vega.css';

Using CDN or bundler imports? See the Installation page.

Include JavaScript

Copy or serve the full Basecoat JavaScript bundle.

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

Or copy or serve the Basecoat runtime and Drawer script.

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

Using CDN or bundler imports? See the Installation page.

Add your sheet HTML

Use class="sheet" on a native <dialog>. Sheet has its own component CSS and style-pack visuals. It uses the Drawer script for dialog interactions. Set the edge with data-side (right by default), open the dialog with showModal(), and associate its heading with aria-labelledby.

<button type="button" class="btn" data-variant="outline" onclick="document.getElementById('sheet-example').showModal()">Project details</button>
<dialog id="sheet-example" class="sheet" data-side="right" aria-labelledby="sheet-example-title">
  <article>
    <header>
      <h2 id="sheet-example-title">Project details</h2>
      <p>Review the information for this project.</p>
    </header>
    <footer>
      <button type="button" class="btn" onclick="this.closest('dialog').close()">Done</button>
    </footer>
  </article>
</dialog>

Examples

Side

Set data-side to top, right, bottom, or left. Make a scrolling body keyboard-focusable with tabindex="0" and give it a label. These examples keep a themed scrollbar visible for mouse users.

Edit profile

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

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Edit profile

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

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Edit profile

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

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Edit profile

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

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

Your profile helps teammates identify you across the workspace. Keep your name, contact details, and preferences up to date. Changes apply to every project in this workspace.

No Close Button

Omit the close button to dismiss through the backdrop or Escape. Backdrop dismissal uses the Drawer script included in the setup above.

No Close Button

This sheet doesn’t have a close button in the top-right corner. Click outside to close.

RTL

Set dir="rtl" on the dialog or an ancestor. Text and logical spacing follow that direction. This example uses data-side="left" to mirror the default right-side sheet.

تعديل الملف الشخصي

قم بإجراء تغييرات على ملفك الشخصي هنا. انقر حفظ عند الانتهاء.