Garden 9 is now available.
The website has been updated to the latest major version. View previous versions
Skip to main content
Design
Components
Patterns
    • Introduction
      • Overview
    • Foundations
      • Bedrock CSS
      • Design tokens
      • Containers
      • Theming
      • Versions
    • Components
      • Accordion
      • Anchor
      • Avatar
      • Breadcrumbs
      • Buttons
      • Chrome
      • Code block
      • Color picker
      • Color swatch
      • Date picker
      • Draggable
      • Drawer
      • Forms
      • Grid
      • Loaders
      • Menu
      • Modal
      • Notification
      • Pagination
      • Pane
      • Sheet
      • Status indicator
      • Stepper
      • Table
      • Tabs
      • Tags
      • Tiles
      • Timeline
      • Tooltip
      • Tooltip dialog
      • Typography
      • Well
    Table of Contents
    • How to use it
      • Default
      • Placement
      • Size
      • Type
    • Configuration
    • API
      • Tooltip

    Tooltip

    Tooltips appear when a user hovers or focuses an element. They provide contextual information about the element they are paired with.


    Table of Contents
    • How to use it
      • Default
      • Placement
      • Size
      • Type
    • Configuration
    • API
      • Tooltip

    Used for this
    • To describe the function of an element when it might be ambiguous
    • To describe the function of unlabeled icons
    Not for this
    • To provide information a user needs to know or remember
    • To display truncated text, use a title attribute instead

    How to use it

    Default

    The default usage of a Tooltip component.

    Toggle dark mode
    Set primary hue
    Toggle RTL
    Open in CodeSandbox
    Copy code
    View code

    Placement

    There are 13 placement options. By default, the Tooltip occupies the top position. auto uses the placement with the most available space.

    Toggle dark mode
    Set primary hue
    Toggle RTL
    Open in CodeSandbox
    Copy code
    View code

    Size

    Tooltips can be small, medium, large, or extra-large. Only large and extra-large sizes can contain a Title.

    Toggle dark mode
    Set primary hue
    Toggle RTL
    Open in CodeSandbox
    Copy code
    View code

    Type

    Tooltips can be light or dark. Small and medium tooltips should default to dark. Large and extra-large tooltips should default to light.

    Toggle dark mode
    Set primary hue
    Toggle RTL
    Open in CodeSandbox
    Copy code
    View code

    Configuration

    • Name9.5.3•View source•View on npm
    • Installnpm install @zendeskgarden/react-tooltips
    • Depsnpm install react react-dom styled-components @zendeskgarden/react-theming
    • Importimport { Tooltip } from '@zendeskgarden/react-tooltips'

    API

    Tooltip

    Prop nameTypeDefaultDescription
    appendToNode
    Element

    Appends the tooltip to the element provided

    content
    ReactNode
    Required

    Defines the content of the tooltip

    delayMS
    number
    500

    Adds milliseconds of delay to the opening and closing of the tooltip

    hasArrow
    boolean
    true

    Adds an arrow to the tooltip

    isInitialVisible
    boolean

    Displays the tooltip on initial render

    isVisible
    boolean

    Displays the tooltip

    placement
    'end' | 'start' | 'auto' | 'top' | 'bottom' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'end-top' | 'end-bottom' | 'start-top' | 'start-bottom'
    'top'

    Adjusts the placement of the tooltip

    refKey
    string
    'ref'

    Defines the ref key used to position the tooltip

    size
    'small' | 'medium' | 'large' | 'extra-large'

    Adjusts the padding and font size

    type
    'light' | 'dark'
    'dark'

    Specifies the tooltip type

    zIndex
    string | number

    Sets the z-index of the tooltip

    Tooltip.Paragraph

    Extends HTMLAttributes<HTMLParagraphElement>

    Tooltip.Title

    Extends HTMLAttributes<HTMLDivElement>

    Garden is the design system by Zendesk.
    BlogGitHubVersions
    © Zendesk 2025