Panel

Material Design 3-styled panel web component (lit-material-panel) — a bordered/raised content container with optional header and footer.

  • 1.0 KB gzipped
  • @lit-material/panel 0.0.3
  • Renders on the server

Example

Install

npm install @lit-material/panel @lit-material/tokens
import "@lit-material/panel";

Link @lit-material/tokens/css/index.css once per page for the colour, type and shape tokens. Install guide

API

<lit-material-panel>

A generic content container with optional header and footer bands — for grouping related content (a filter form, a summary card, a settings section) distinctly from the page background, without the interactive affordances (hover/press states, href) that lit-material-card implies.

Properties

PropertyAttributeTypeDefaultDescription
variantvariantPanelVariant"default"
scrollablescrollablebooleanfalseScrolls the body internally instead of growing, once the panel's own height is constrained.

Slots

SlotDescription
headerOptional heading content.
defaultThe panel's main content.
footerOptional footer content (actions, metadata).

CSS parts

PartDescription
headerThe header band.
bodyThe main content band.
footerThe footer band.

Source on GitHub npm