Skip to main content Red Hat Design System logo Contribute on Github v1.4.5

Tooltip

Overview Style Guidelines Code Demos Accessibility

Installation

Usage

rh-tooltip

Slots 2
Slot Name Description

Place invoking element here, i.e. the element which when hovered the tooltip will display. Must be inline content.

content

Place tooltip content here. Overrides the content attribute.

Attributes 2
DOM Property Description Type Default
position

The position of the tooltip, relative to the invoking content

Placement
'top'
content

Tooltip content. Overridden by the content slot

string | undefined
unknown
Methods 2
Method Name Description
show()

Show the tooltip

hide()

Hide the tooltip

Events 0

None

CSS Shadow Parts 0

None

CSS Custom Properties 9
CSS Property Description Default
--rh-tooltip-arrow-size 11px
--rh-tooltip-content-background-color #ffffff
--rh-tooltip-content-color #151515
--rh-tooltip-max-width 18.75rem
--rh-tooltip-content-padding-block-start 16px
--rh-tooltip-content-padding-inline-end 16px
--rh-tooltip-content-padding-block-end 16px
--rh-tooltip-content-padding-inline-start 16px
--rh-tooltip-content-font-size 0.875rem
Design Tokens 0

None

© 2021-2024 Red Hat, Inc. Deploys by Netlify