Skip to content
THE COMPONENT LIBRARY
Skip to content

Component reference

HoverCard

Supplementary profile information on a named trigger.

Preview

Live preview

Changes apply to this preview only.

Width adapts to the available space

More examples

Different configurations and compositions using the real Pimolu API. Each preview runs independently and follows the site appearance.

Package information

Focus or hover the trigger to inspect a package; follow the real installation guide.

Open preview

Delays

The open delay prevents accidental previews while the pointer crosses the page.

Open preview

People

A people composition using HoverCard.

Open preview

Usage

Keep essential actions available without hover; choose Popover or Dialog for required interactions.

API reference

Generated from the public TypeScript declarations. Native HTML attributes are inherited where the component extends them; this reference includes Pimolu props and selected common native attributes.

PimoluHoverCardProps

Type source
PimoluHoverCardProps public API
NameTypeDefaultDescription
childrenRequiredReactNode—The trigger and the content. `HoverCardTrigger` must receive the single element that opens the card.
placementPimoluHoverCardPlacement | undefined"bottom"; the card flips to the opposite side when there is not enough roomPreferred side. Defaults to "bottom"; the card flips to the opposite side when there is not enough room.
openDelaynumber | undefined300Delay before opening, in milliseconds. Defaults to 300.
closeDelaynumber | undefined150Delay before closing, in milliseconds. Defaults to 150.
offsetnumber | undefined8Distance between the trigger and the card, in pixels. Defaults to 8.
disabledboolean | undefinedfalseNever open.
childrenRequired

ReactNode

No default extracted.

The trigger and the content. `HoverCardTrigger` must receive the single element that opens the card.

placement

PimoluHoverCardPlacement | undefined

Default: "bottom"; the card flips to the opposite side when there is not enough room

Preferred side. Defaults to "bottom"; the card flips to the opposite side when there is not enough room.

openDelay

number | undefined

Default: 300

Delay before opening, in milliseconds. Defaults to 300.

closeDelay

number | undefined

Default: 150

Delay before closing, in milliseconds. Defaults to 150.

offset

number | undefined

Default: 8

Distance between the trigger and the card, in pixels. Defaults to 8.

disabled

boolean | undefined

Default: false

Never open.

PimoluHoverCardTriggerProps

Type source
PimoluHoverCardTriggerProps public API
NameTypeDefaultDescription
childrenRequiredReactElement<unknown, string | JSXElementConstructor<any>>—The single element that opens the card: any element, or a component that passes down the props it receives. It gets the ARIA state, the event handlers and the ref, and the handlers it already had keep working.
childrenRequired

ReactElement<unknown, string | JSXElementConstructor<any>>

No default extracted.

The single element that opens the card: any element, or a component that passes down the props it receives. It gets the ARIA state, the event handlers and the ref, and the handlers it already had keep working.

PimoluHoverCardLabelling

Type source
PimoluHoverCardLabelling public API
NameTypeDefaultDescription
labelstring | undefined—Visible label associated with the control.
labelledBystring | undefined—Public Pimolu prop; see the source declaration for details.
label

string | undefined

No default extracted.

Visible label associated with the control.

labelledBy

string | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

PimoluHoverCardContentProps

Type source
PimoluHoverCardContentProps public API
NameTypeDefaultDescription
labelstring | undefined—Visible label associated with the control.
labelledBystring | undefined—Public Pimolu prop; see the source declaration for details.
childrenRequiredReactNode—Rich, interactive content of the card.
classNamestring | undefined—Class applied to the panel.
label

string | undefined

No default extracted.

Visible label associated with the control.

labelledBy

string | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

childrenRequired

ReactNode

No default extracted.

Rich, interactive content of the card.

className

string | undefined

No default extracted.

Class applied to the panel.

Accessibility

  • Test keyboard focus and touch access, and avoid hiding necessary information from non-hover users.
Read the accessibility guide →