About dialog

Material Design 3 dialog web component, built on the native <dialog> element.

  • 4.3 KB gzipped
  • @lit-material/dialog 0.2.0
  • Renders on the server

Example

Install

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

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

API

<lit-material-about-dialog>

An "About" dialog: the product's name and logo, its version and build details, and the legal lines — what a Help → About menu item opens.

Properties

PropertyAttributeTypeDefaultDescription
productNameproduct-namestring""The product's name: the dialog's heading.
openopenbooleanfalse
closeLabelclose-labelstring"Close"The close button's text.

Events

EventDescription
closeAfter the dialog has closed.

Slots

SlotDescription
logoThe product's logo, shown above its name.
defaultVersion and build details.
legalCopyright, trademark and license lines, in small print.

Source on GitHub npm