Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

HoverCardTrigger

Open .md
Live preview

Loading example…

HoverCardTrigger is part of the Overlays set, imported from @jcsoftdev/ui/overlays.

import { HoverCardTrigger } from "@jcsoftdev/ui/overlays";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/overlays/hover-card.

export const Default: Story = {
render: (args) => (
<HoverCard {...args}>
<Barbero />
</HoverCard>
),
};

Source of the Storybook story.

Prop Type Default Description
asChild boolean Use the child element as the trigger instead of wrapping it in a span.
intent string
intentKey string

* marks a required prop.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/overlays/hover-card/hover-card.tsx