diff --git a/docs/src/pages/components/Tooltip.svx b/docs/src/pages/components/Tooltip.svx index 7b34025e..496f1042 100644 --- a/docs/src/pages/components/Tooltip.svx +++ b/docs/src/pages/components/Tooltip.svx @@ -8,9 +8,11 @@ components: ["Tooltip", "TooltipFooter"] import Preview from "../../components/Preview.svelte"; +`Tooltip` displays contextual information when users hover over or focus on an element. It supports various directions, alignments, and interactive content to provide additional context or guidance. + ## Default -By default, the tooltip is triggered by an information icon. +Display a tooltip triggered by the default information icon.

@@ -20,6 +22,8 @@ By default, the tooltip is triggered by an information icon. ## With trigger text +Use custom trigger text instead of the default icon. +

Resources are provisioned based on your account's organization. @@ -28,10 +32,14 @@ By default, the tooltip is triggered by an information icon. ## Reactive example +Control the tooltip state programmatically. + ## Directions +Position the tooltip in different directions using the `direction` prop. +

Top

Right

Bottom

@@ -39,12 +47,16 @@ By default, the tooltip is triggered by an information icon. ## Alignment +Align the tooltip content using the `align` prop. +

Start

End

Center

## Interactive +Add interactive elements like links and buttons using `TooltipFooter`. +

Resources are provisioned based on your account's organization. @@ -52,11 +64,13 @@ By default, the tooltip is triggered by an information icon. Learn more - + ## Custom icon (component) +Use a custom icon component with the `icon` prop. +

Resources are provisioned based on your account's organization. @@ -65,6 +79,8 @@ By default, the tooltip is triggered by an information icon. ## Custom icon (slot) +Customize the icon using the `icon` slot for more flexibility. +

@@ -74,6 +90,8 @@ By default, the tooltip is triggered by an information icon. ## Hidden icon +Hide the icon while keeping the tooltip functionality using `hideIcon`. +

Resources are provisioned based on your account's organization.