Tooltip
Last updated: 2.0.0 (22/01/2024)
Last updated
Was this helpful?
Last updated: 2.0.0 (22/01/2024)
Last updated
Was this helpful?
The Tooltip be used in a controlled fashion using the useDisclosure
hook. The Tooltip will automatically hide when clicked away from (i.e. another element is focused), regardless of whether or not it is controlled.
The Tooltip.Content
component accepts any valid JSX, or a raw string. This can be used to pass in icons or more complex content.
children (required)
ReactNode
children (required)
ReactElement<any>
children (required)
string | ReactNode
withShadow
boolean
Whether to display a shadow underneath the tooltip.
zIndex
CSSProperties["zIndex"]
The z-index of the tooltip.
Extends .
Extends .
2.2.0: Uncontrolled tooltips will no longer show on . Controlled tooltips (i.e. those that accept the disclosure
prop) are unaffected.