Tooltip
Anatomy
Specifications
Properties
Property | Type | Description | Required | Default |
---|---|---|---|---|
content | string | Simple string of content that appears in the panel on click. Should not contain any HTML. | Yes | - |
label | string | Accessible label for screen readers | No | "more info" |
class | string | list of additional classes to apply to main element. | No | - |
Styling
Custom Properties
Name | Default | Resets | Description |
---|---|---|---|
--tux-c-popover--bg-color | white | No | - |
--tux-c-popover--text-color | black | No | - |
Changelog
1.5.0
- popover added
Related
Contains
Other core components embedded within this template.
Examples
Default
{{ include( 'components/popover.twig', { label: "in-state definition" content: "In-state includes any of the neighboring counties of states adjacent to where we are located." } ) }}