Skip to content

Popover

Rich, non-modal content anchored to a trigger, on the native Popover API.

CSS + mian.js JSON Markdown Registry item

Dimensions

Dimensions

Set the layer size.

Installation

Everything ships in one stylesheet and one small script. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">
<script src="https://mian.ro/dist/mian.js" defer></script>

Prefer to own the files? /r/popover.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-popover + popoverThe panel. Point popovertarget at it.
data-placementbottom (default), top, left, right, with -start or -end.
mn-popover-titleHeading.

Accessibility

  • The browser handles Escape, light dismiss and aria-expanded on the invoker. Use a Modal instead if the content must be completed.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page