The Hover component displays content in a card that appears when hovering over a trigger element. It provides a flexible way to show additional information or actions without requiring a click.
} from ' @fintech-sandpit/ui/react ' ;
offset: { mainAxis: 0 , crossAxis: 0 } ,
< Button colorScheme = " primary " >
< h3 > Hover Card Title </ h3 >
< p > This is the hover card content. </ p >
} from ' @fintech-sandpit/ui/vue ' ;
offset: { mainAxis: 0 , crossAxis: 0 },
< Button color-scheme = " primary " >
< h3 > Hover Card Title </ h3 >
< p > This is the hover card content. </ p >
Name Type Required Default Description openDelaynumber700Delay in milliseconds before opening the hover card closeDelaynumber300Delay in milliseconds before closing the hover card openbooleanWhether the hover card is open (controlled) defaultOpenbooleanfalseWhether the hover card is open by default (uncontrolled) positioningPositioningOptionsPositioning options for the hover card. See PositioningOptions type below.
Name Type Required Default Description open-delaynumber700Delay in milliseconds before opening the hover card close-delaynumber300Delay in milliseconds before closing the hover card openbooleanWhether the hover card is open (controlled) default-openbooleanfalseWhether the hover card is open by default (uncontrolled) positioningPositioningOptionsPositioning options for the hover card. See PositioningOptions type below.
Name Type Required Default Description asChildbooleanfalseWhen true, merges props with the child element instead of rendering a wrapper
Name Type Required Default Description as-childbooleanfalseWhen true, merges props with the child element instead of rendering a wrapper
Name Arguments Description onOpenChange(details: { open: boolean }) => voidCallback fired when open state changes
Name Arguments Description @open-change(details: { open: boolean }) => voidCallback fired when open state changes
type PositioningOptions = {
placement ?: ' top ' | ' top-start ' | ' top-end ' | ' bottom ' | ' bottom-start ' | ' bottom-end ' | ' left ' | ' left-start ' | ' left-end ' | ' right ' | ' right-start ' | ' right-end '
offset ?: { mainAxis ?: number ; crossAxis ?: number }
The root component that manages the hover card state and provides context to child components. Supports both controlled and uncontrolled usage.
The element that triggers the hover card when hovered over. Use asChild prop to merge props with a child element.
The main content container for the hover card. Automatically includes positioning and portal rendering.