Default button tooltip
The default position is `top` and the default tone is `info`.
<CwTooltip value="Refresh the dashboard data">
<CwButton variant="secondary">Refresh</CwButton>
</CwTooltip>Hover tooltips with position and tone variants.
<CwTooltip value="Tooltip on top" position="top">
<CwButton variant="secondary">Top</CwButton>
</CwTooltip>Hover over this word to see a tooltip on inline content.
CwTooltip wraps an existing trigger element and shows short, contextual guidance on hover or focus. Keep the copy concise and use it for hints, not large descriptions.
| API | Type | Details |
|---|---|---|
value Required | string | Tooltip text content. |
position Default: | 'top' | 'bottom' | 'left' | 'right' | Placement relative to the trigger. |
tone Default: | CwTone | Tooltip color theme. |
children Required | Snippet | Wrapped trigger content. |
These snippets intentionally show the full public API surface the live demo relies on.
The default position is `top` and the default tone is `info`.
<CwTooltip value="Refresh the dashboard data">
<CwButton variant="secondary">Refresh</CwButton>
</CwTooltip>Tooltips can also wrap inline text, not just buttons.
<p>
Sensor status:
<CwTooltip value="No device data has arrived in the last 30 minutes." tone="warning" position="right">
<span style="text-decoration:underline dotted;cursor:help">stale</span>
</CwTooltip>
</p>