Skip to content

Commit

Permalink
Docs(web-twig): Add demo with Tooltip on Icon cmp
Browse files Browse the repository at this point in the history
- New demo with tooltip on Icon component
  • Loading branch information
pavelklibani committed Feb 2, 2024
1 parent 84b227d commit a3e338c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
{% include '@components/Tooltip/stories/TooltipDismissibleViaJS.twig' %}
</DocsSection>

<DocsSection title="Tooltip on Icon Component">
{% include '@components/Tooltip/stories/TooltipIcon.twig' %}
</DocsSection>

<DocsSection title="Advanced Floating Functionality">
{% include '@components/Tooltip/stories/TooltipFloatingUI.twig' %}
</DocsSection>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<span>
Click on the icon on the right to view the tooltip
<TooltipWrapper UNSAFE_className="spirit-feature-tooltip-enable-data-placement d-inline-block">
<Icon
id="button-example-with-icon"
name="info"
boxSize="16"
marginBottom="space-200"
aria-describedby="tooltip-example-with-icon"
data-spirit-toggle="tooltip"
data-spirit-target="#tooltip-example-with-icon"
/>
<TooltipPopover
id="tooltip-example-with-icon"
UNSAFE_className="is-hidden"
enableControlledPlacement
placement="right"
flipFallbackPlacements="top-start, top-bottom, left"
isDismissible
>
Close me
</TooltipPopov>
</TooltipWrapper>
</span>

0 comments on commit a3e338c

Please sign in to comment.