- Home
- Design system
- Elements
- Texttip
Texttip
Overview
ds-texttip is for displaying simple, plain text only tooltips, and uses the content inside the html data-attribute data-ds-texttip for the content. By default there is no requirement to add any classes.
For tooltips that use rich formatted content, see ds-richtip
Options
Basic usage
Tip Position
By adding the appropriate --tip-* class, the position of the tip can be changed.
The following positions are available - (hover over labels to view examples):
--tip-top-left | --tip-top | --tip-top-right | ||
--tip-left-top | --tip-right-top | |||
--tip-left | default (top) | --tip-right | ||
--tip-left-bottom | --tip-right-bottom | |||
--tip-bottom-left | --tip-bottom | --tip-bottom-right |
Visual states
Component colors
Examples
Icon text tip inside label
Manifest
The component manifest describes this component's API: its modifiers, structure, data attributes, CSS custom properties, accessibility notes, and example markup. It is consumed by tooling such as AI assistants and code generators.
Latest version: https://assets.soracom.io/sds/latest/ds-texttip/manifest.json