Components / hover-card

hover-card

Rich tooltip showing on hover. Contains header, body, footer.

status: stable js: none support: baseline

Preview

Markup

<div class="hover-card"><a href="#">…</a><div class="hover-card-panel"><div class="hover-card-header">…</div>…</div></div>

Install

Import the component CSS (depends on base/tokens.css):

@import "@russfranky/shadcss/src/components/hover-card.css";

…or copy it into your repo with the CLI:

npx @russfranky/shadcss-cli add hover-card

Accessibility

Classes

.hover-card .hover-card-panel .hover-card-header .hover-card-title .hover-card-description .hover-card-footer .hover-card-stat .hover-card-stat-value

Dependencies

base/tokens