Getting startedComponentsDesign tokensThemingTheme synthesizerFrameworksAccessibilityUtilitiesServer renderingBrowser supportContributingChangelogApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip
ARC UIARC Radiant Components
v4.9DocsComponentsTokensSynthesizer
Getting startedFrameworksServer renderingDesign tokensThemingTheme synthesizerTypographyUtilitiesAll componentsAccessibilityBrowser supportChangelogContributingStatsApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip

Hover Card

Floating card that opens after a delay when its trigger is hovered or focused.

ComponentsHover Card
feedbackinteractive
<arc-hover-card>

Overview

Hover Card shows a floating card when someone hovers over or focuses its trigger. Tooltip shows a short text label. Hover Card holds any markup and opens without a click. The card opens after `open-delay` (400ms by default) and closes `close-delay` (300ms by default) after the cursor leaves the trigger. Moving the cursor into the card cancels the close, so people can use links and buttons inside it. Escape closes it while focus is in the trigger or the card. `position` sets the preferred side: `bottom` (default), `top`, `left` or `right`. If the card doesn't fit there, it flips to the opposite side and shifts along the edge to stay in the viewport. It opens with a fade and a scale from 0.96 to 1. Put the trigger in the default slot and the card's content in the `content` slot.

Guidelines

Do

  • Keep the content short: a heading, a few lines of text, and at most a link or an action
  • Raise `open-delay` in dense layouts so the card doesn't open as the cursor passes over

Don't

  • Don't put anything people must see in a hover card. Touch screens have no hover
  • Don't put forms in the card. Use Popover or Dialog
  • Don't set `open-delay` to 0. The card flashes open on every passing hover
  • Don't leave the `content` slot empty. The card opens as an empty panel

Features

  • `arc-open` and `arc-close` fire when the card shows and hides

Preview

Hover for details
Alice Chen Senior Engineer @ Arclight San Francisco, CA

Usage

This component needs JavaScript. Use the Web Component or a framework wrapper.

<arc-hover-card>
  <arc-button variant="secondary">Hover me</arc-button>
  <div slot="content">Additional details on hover.</div>
</arc-hover-card>

API

open-delaynumber400
Milliseconds to wait after hover/focus before showing the card. Prevents accidental activation during fast cursor movement.
close-delaynumber300
Milliseconds to wait after the cursor leaves the trigger before hiding the card. Moving into the card cancels this timer.
position'bottom' | 'top' | 'left' | 'right''bottom'
Controls which side of the trigger the card appears on. The card is centered along the perpendicular axis using CSS transforms.

Events

arc-open
Fired when the hover card becomes visible
arc-close
Fired when the hover card hides

See also