Divider

Material Design 3 divider web component (horizontal or vertical, optionally inset).

  • 913 B gzipped
  • @lit-material/divider 0.0.4
  • Renders on the server

Example

Install

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

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

API

<lit-material-divider>

Material Design 3 divider — a thin line that groups or separates content, typically inside a list or between sections.

Properties

PropertyAttributeTypeDefaultDescription
orientationorientationDividerOrientation"horizontal"
insetStartinset-startbooleanfalse
insetEndinset-endbooleanfalse

Source on GitHub npm