Skip to content

Search

Start typing to search.


Show all pages

Documentation

overlays

Sheet

A panel that slides in from an edge of the screen, for filters, navigation or details.

Native behaviorUses built-in HTML behavior, so you write no script.

Usage

A native <dialog> with ca-sheet--end, opened with commandfor and command="show-modal", like a dialog.

Filter lessons

Instructor
HTML

Examples

From the start edge

ca-sheet--start suits navigation on small screens.

Drive School

HTML

From the bottom

ca-sheet--bottom suits short details on phones; it is as tall as its content, up to 85% of the screen.

Tuesday, 09:00

Highway practice with Sam in the blue car, 90 minutes.

HTML

Guidance and accessibility

When to use

  • Use a sheet for a task beside the page, such as filtering a list, or for navigation on small screens.
  • For a short decision, use a dialog; for content people come back to, use a page.

Accessibility

  • It is a native modal <dialog>: the browser keeps focus inside, closes it on Escape, makes the page behind it inert and returns focus to the button that opened it.
  • Give it a title connected with aria-labelledby, and a button that closes it in words.
  • Edges are logical: in right-to-left layouts the end edge is the left.

Classes

Generated from the component contract. Parts use __, modifiers use --.

Classes of the sheet component
ClassKindUse it for
ca-sheetComponentThe <dialog> pinned to one edge, as tall or wide as the screen.
ca-sheet__titlePartHeading of the sheet; connect it with aria-labelledby.
ca-sheet__descriptionPartOptional explanation below the title.
ca-sheet__bodyPartThe content; it scrolls while title and footer stay in view.
ca-sheet__footerPartRow of actions at the end of the sheet.
ca-sheet--endLayoutSlides from the end edge (the right in left-to-right).
ca-sheet--startLayoutSlides from the start edge.
ca-sheet--bottomLayoutSlides up from the bottom.

Skins

The same markup, dressed by each skin. Structure and behavior stay the same; only the look changes.

Base skin

Neutral grayscale starting point; product skins extend it and change what differs.

Filter lessons

Instructor

Calaca skin

The Calaca UI brand: hueso paper and tinta ink, cempasúchil marigold, rosa and jade.

Filter lessons

Instructor

Proof skin

Pilot skin pushed far from base: square, heavy, offset shadows, larger targets.

Filter lessons

Instructor

Crossview skin

The CrossView proofing table: cool ground, bond-paper sheets, rule-grey hairlines, one red mark.

Filter lessons

Instructor

Framework notes

Link the prebuilt stylesheet of your skin next to your brand theme. No build step.

HTML
<link rel="stylesheet" href="theme.css" />
<link rel="stylesheet" href="ca-base.css" />