Skip to content
BigBang

Popular

    ↑↓Navigate↵OpenEscClose
    TR

    Components

    PreviewCard

    A link that shows a short preview of its destination on hover or focus.

    Storybook
    Storybook
    Source
    Source
    • To summarise where a link in running text goes without leaving the page: a help article, a merchant or a record.
    • When the preview holds actions or a form: use Popover; a PreviewCard cannot be entered with the keyboard.
    • To explain a term: use InfoPopover or Tooltip.
    • As the only source of information on touch screens: there is no hover; the destination page must hold the information too.
    1. Link: a native <a href> with the inline Link look.
    2. Card: the preview, on the Popover surface, opened next to the link.
    • The card opens after delay (600 ms) on hover or focus, and closes after closeDelay (300 ms) when the pointer leaves.
    • The card stays open while the pointer is on it.
    • Focus stays on the link; the card is not in the tab order. Escape closes it.
    • Unsafe href schemes are dropped, as in Link.
    • Make the link text meaningful on its own; the preview is extra.
    • Keep the card short: a title, two lines of summary, a date.
    • Do not put several preview links in one paragraph.
    • The title is the name of the destination page.
    • The summary says what the destination is; it has no instructions such as “click”.
    • Link: a link without a preview.
    • Popover: a panel opened by click, for interactive content.
    • Tooltip: a short label or hint.