Tooltip
Simple text popup box.
When to use
- The tip is shown on mouse enter, and is hidden on mouse leave. The Tooltip doesn't support complex text or operations.
- To provide an explanation of a
button/text/operation. It's often used instead of the htmltitleattribute.
Examples
API
Tooltip are exported from @ceebee/ui/client.
A supplementary tooltip must retain an existing field description on its trigger. The local runtime
pins Ant's @rc-component/tooltip dependency to 1.5.2: 1.5.1 replaced the trigger's
aria-describedby, disconnecting a Select from its hint. A regression spec checks the description
before and after opening the tooltip. The workspace override controls this repository's dependency
resolution; it is not a published override for a consuming application.
Tooltip
| Property | Description | Type | Default | Version |
|---|---|---|---|---|
title | The text shown in the tooltip | ReactNode | () => ReactNode | - | - |
color | The background color. After using this attribute, the internal text color will adapt automatically | string | - | 5.27.0 |
classNames | Semantic DOM class | Record<SemanticDOM, string> | (info: { props }) => Record<SemanticDOM, string> | - | 5.23.0 |
styles | Semantic DOM style | Record<SemanticDOM, CSSProperties> | (info: { props }) => Record<SemanticDOM, CSSProperties> | - | 5.23.0 |