diff --git a/docs/src/pages/components/TooltipIcon.svx b/docs/src/pages/components/TooltipIcon.svx index 3d23e343..4bdfeae6 100644 --- a/docs/src/pages/components/TooltipIcon.svx +++ b/docs/src/pages/components/TooltipIcon.svx @@ -5,12 +5,18 @@ import Preview from "../../components/Preview.svelte"; -## Default ("bottom" direction, "center" aligned) +`TooltipIcon` displays contextual information when users hover over or focus on an icon. It's ideal for providing additional context about icons or actions in your interface. + +## Default + +Display a tooltip with the default bottom-center alignment. ## Directions +Position the tooltip in different directions and alignments using the `direction` and `align` props. + @@ -18,7 +24,7 @@ ## Custom tooltip text -Use the "text" slot to customize the tooltip text. +Use the `tooltipText` slot to customize the tooltip content with additional styling. Carbon is an open source design system by IBM. @@ -26,4 +32,6 @@ Use the "text" slot to customize the tooltip text. ## Disabled state +Set `disabled` to `true` to prevent user interaction with the tooltip. + \ No newline at end of file