Skip to content

Hover Card ​

Loading...

<flint-hover-card-trigger> ​

Trigger element for a hover card. Place inside flint-hover-card. Automatically wires up to the nearest flint-hover-card ancestor.

  • Tag: <flint-hover-card-trigger>
  • Class: FlintHoverCardTrigger

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintHoverCardTrigger } from 'flint-ui';

Usage ​

html
<flint-hover-card-trigger></flint-hover-card-trigger>

Slots ​

NameDescription
(default)The element that activates the hover card (link, button, avatar…).

CSS Custom Properties ​

PropertyDefault
--flint-hovercard-z-index1000
--flint-hovercard-duration150ms
--flint-hovercard-bgvar(--flint-surface-1
--flint-hovercard-border-colorvar(--flint-border-color
--flint-hovercard-radius8px
--flint-hovercard-shadow0 4px 16px rgba(0, 0, 0, 0.12
--flint-hovercard-padding16px
--flint-hovercard-min-width200px
--flint-font-familyβ€”
--flint-hovercard-font-size0.875rem
--flint-hovercard-colorvar(--flint-text-color

<flint-hover-card-content> ​

  • Tag: <flint-hover-card-content>
  • Class: FlintHoverCardContent

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintHoverCardContent } from 'flint-ui';

Usage ​

html
<flint-hover-card-content></flint-hover-card-content>

Properties ​

PropertyAttributeTypeDefaultDescription
sideside'top' | 'right' | 'bottom' | 'left''bottom'Which side of the trigger to display the card on.
alignalign'start' | 'center' | 'end''center'Alignment of the card along the cross axis relative to the trigger.
openopenbooleanfalseWhether the card is visible. Managed by the parent flint-hover-card.

Slots ​

NameDescription
(default)Default slot for content

<flint-hover-card> ​

Root container for a hover card. Manages open/closed state with configurable open and close delays.

  • Tag: <flint-hover-card>
  • Class: FlintHoverCard

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintHoverCard } from 'flint-ui';

Usage ​

html
<flint-hover-card></flint-hover-card>

Properties ​

PropertyAttributeTypeDefaultDescription
openDelayopen-delaynumber700Delay in milliseconds before the hover card opens.
closeDelayclose-delaynumber300Delay in milliseconds before the hover card closes.

Events ​

EventDetailDescription
flint-hover-card-openβ€”Fired when the card becomes visible.
flint-hover-card-closeβ€”Fired when the card is dismissed.

Slots ​

NameDescription
(default)Accepts flint-hover-card-trigger and flint-hover-card-content.

Methods ​

MethodDescription
isOpen(): booleanWhether the card is currently open.