Skip to content

Hover card

A preview card that appears when hovering or focusing a link, profiles, link previews, definitions.

Profile preview

Made by @btn-group 面 BTN GROUP SRL
Makers of MIAN: 54+ components and many noodles.
.

Installation

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

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

Prefer to own the files? /r/hover-card.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-hover-cardWrapper around the trigger and the card.
mn-hover-card-contentThe card (combine with mn-card).
mn-hover-card-startAlign to the start instead of centring.

Accessibility

  • It appears on keyboard focus as well as hover, after a short delay on hover.
  • Only put supplementary information in it, never the only way to reach something. The trigger must work on its own.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page