Skip to content
BigBang

Popular

    ↑↓Navigate↵OpenEscClose
    TR

    Components

    Tooltip

    A short hint that appears beside an element on hover and keyboard focus.

    Storybook
    Storybook
    Source
    Source
    State Visual change Tokens
    Closed Not visible None
    Opening Fades in with a 2 px drift motion-tooltip-enter-duration, motion-tooltip-distance
    Open Inverse background, shadow, arrow color-surface-inverse, color-text-inverse, shadow-overlay
    Closing A short fade motion-tooltip-exit-duration
    Property Value Token
    Maximum width 240 px tooltip-max-width
    Padding 12 px inline, 6 px block space-lg, space-sm
    Corner radius 8 px radius-md
    Distance from the trigger 4 px None
    Arrow 10 × 10 px, 2 px corners tooltip-arrow-size, radius-2xs
    Shortcut (Kbd) Beside the text, 6 px apart; 6 px end padding after it space-sm
    Text style body-sm text.body-sm

    Values are shown for the selected brand; change the brand from the top bar.

    TokenSampleLight modeDark mode
    --bigbang-tooltip-max-width240px240px240px240px240px240px
    --bigbang-color-surface-inverse#171717#171717#171717#fafafa#fafafa#fafafa
    --bigbang-color-text-inverse#ffffff#ffffff#ffffff#171717#171717#171717
    --bigbang-radius-md8px8px8px8px8px8px
    --bigbang-radius-2xs2px2px2px2px2px2px
    --bigbang-tooltip-arrow-size10px10px10px10px10px10px
    --bigbang-shadow-overlay0px 20px 25px -5px rgba(0, 0, 0, 0.10196078431372549), 0px 8px 10px -6px rgba(0, 0, 0, 0.10196078431372549)0px 20px 25px -5px rgba(0, 0, 0, 0.10196078431372549), 0px 8px 10px -6px rgba(0, 0, 0, 0.10196078431372549)0px 20px 25px -5px rgba(0, 0, 0, 0.10196078431372549), 0px 8px 10px -6px rgba(0, 0, 0, 0.10196078431372549)0px 8px 24px 0px rgba(0, 0, 0, 0.47843137254901963)0px 8px 24px 0px rgba(0, 0, 0, 0.47843137254901963)0px 8px 24px 0px rgba(0, 0, 0, 0.47843137254901963)
    --bigbang-space-lg12px12px12px12px12px12px
    --bigbang-space-sm6px6px6px6px6px6px
    --bigbang-motion-tooltip-delay0.4s0.4s0.4s0.4s0.4s0.4s
    --bigbang-motion-tooltip-enter-duration0.11s0.11s0.11s0.11s0.11s0.11s
    --bigbang-motion-tooltip-exit-duration0.07s0.07s0.07s0.07s0.07s0.07s
    --bigbang-motion-tooltip-distance2px2px2px2px2px2px
    Interaction Property Duration token Easing token Reduced motion
    Open delay Hover time motion-tooltip-delay (400 ms) None Unchanged.
    Enter opacity 0 → 1 and a 2 px drift (motion.tooltip) motion-tooltip-enter-duration (110 ms) easing-productive-enter The drift becomes 0; the tooltip only fades in.
    Exit opacity 1 → 0 motion-tooltip-exit-duration (70 ms) easing-productive-enter Unchanged.

    See Motion for the values.