Tooltip
Tooltips display informative text when users hover over, focus on, or tap an element.
Basic Usage
Show editable code example
Any Paragon component or export may be added to the code example.
Light version
Show editable code example
Any Paragon component or export may be added to the code example.
Theme Variables#
| CSS Variable | Computed Value |
|---|---|
| | |
| | |
| | |
| | |
| | |
Props API#
Tooltip Props API
- id
stringRequiredAn html
idattribute, necessary for accessibility. - variant
literalThe visual style variant of the
Tooltip. Use'light'for a light-themed tooltip. - show
booleanWhether the tooltip is currently visible.
- placement
PlacementDefault'right'Sets the direction the Tooltip is positioned towards.
This is generally provided by the Overlay component positioning the tooltip.
- className
stringAdditional CSS class(es) to put on the tooltip element.
- popper
anyA Popper.js config object passed to the the underlying popper instance.
- bsPrefix unknown typeDefault'tooltip'
Usage Insights#
Tooltip
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-account | 22.10.0 | 1 | |
| frontend-app-admin-portal | 21.13.1 | 13 | |
| frontend-app-authn | 22.11.2 | 1 | |
| frontend-app-course-authoring | 22.8.1 | 11 | |
| xpert_unit_summary | 22.8.1 | 1 | |
| frontend-app-discussions | 22.7.0 | 19 | |
| frontend-app-gradebook | 22.8.1 | 1 | |
| frontend-app-learner-portal-enterprise | 21.13.1 | 3 | |
| frontend-app-learner-record | 22.10.0 | 1 | |
| frontend-app-learning | 22.10.0 | 1 | |
| frontend-app-library-authoring | 21.11.3 | 2 | |
| frontend-app-publisher | 21.13.1 | 2 | |
| frontend-app-support-tools | 21.13.1 | 2 | |
| frontend-component-header-edx | 21.13.1 | 1 | |
| frontend-component-header | 22.10.0 | 1 | |
| prospectus | 20.46.2 | 6 |