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
    State Visual change Tokens
    Closed An inline link color-text-link
    Hover The link colour deepens color-text-link-hovered
    Focus 2 px focus outline 2 px outside the link color-focus-ring, focus-offset
    Open The shared popup surface: raised fill, hairline edge, popup shadow color-surface-raised, color-border-overlay, shadow-popup
    Property Value Token
    Width 240 / 320 / 400 px popover-width-sm, popover-width-md, popover-width-lg
    Padding 10 px popover-padding
    Distance from the link 8 px -
    Corner radius 10 px popover-radius (radius-lg)
    TokenSampleLight modeDark mode
    --bigbang-color-text-link#125768#171717#171717#77bacf#fafafa#fafafa
    --bigbang-color-text-link-hovered#0e414f#404040#404040#a4d0df#d4d4d4#d4d4d4
    --bigbang-color-focus-ring#146d83#737373#737373#77bacf#8c8c8c#8c8c8c
    --bigbang-color-surface-raised#ffffff#ffffff#ffffff#262626#262626#262626
    --bigbang-color-border-overlay#ededed#ededed#edededrgba(255, 255, 255, 0.10196078431372549)rgba(255, 255, 255, 0.10196078431372549)rgba(255, 255, 255, 0.10196078431372549)
    --bigbang-shadow-popup0px 4px 6px -1px rgba(0, 0, 0, 0.10196078431372549), 0px 2px 4px -2px rgba(0, 0, 0, 0.10196078431372549)0px 4px 6px -1px rgba(0, 0, 0, 0.10196078431372549), 0px 2px 4px -2px rgba(0, 0, 0, 0.10196078431372549)0px 4px 6px -1px rgba(0, 0, 0, 0.10196078431372549), 0px 2px 4px -2px rgba(0, 0, 0, 0.10196078431372549)0px 4px 6px -1px rgba(0, 0, 0, 0.3215686274509804), 0px 2px 4px -2px rgba(0, 0, 0, 0.3215686274509804)0px 4px 6px -1px rgba(0, 0, 0, 0.3215686274509804), 0px 2px 4px -2px rgba(0, 0, 0, 0.3215686274509804)0px 4px 6px -1px rgba(0, 0, 0, 0.3215686274509804), 0px 2px 4px -2px rgba(0, 0, 0, 0.3215686274509804)
    --bigbang-popover-width-sm240px240px240px240px240px240px
    --bigbang-popover-width-md320px320px320px320px320px320px
    --bigbang-popover-width-lg400px400px400px400px400px400px
    --bigbang-popover-padding10px10px10px10px10px10px
    --bigbang-popover-radius10px10px10px10px10px10px

    The card grows and fades in from the link with motion.popover and closes faster. With reduced motion only the opacity changes.