diff --git a/site/src/content/docs/reference/tooltip.mdx b/site/src/content/docs/reference/tooltip.mdx index 82cb015a..e171feb3 100644 --- a/site/src/content/docs/reference/tooltip.mdx +++ b/site/src/content/docs/reference/tooltip.mdx @@ -39,7 +39,8 @@ import groupingHtmlTs from "@/components/docs/demos/tooltip/html/css/Grouping.ts Hover me - Label text + Label text + K @@ -50,7 +51,10 @@ import groupingHtmlTs from "@/components/docs/demos/tooltip/html/css/Grouping.ts ```html - Label text + + Label text + K + ``` @@ -62,9 +66,10 @@ Displays a short label anchored to a trigger element. Opens after a configurable The `side` and `align` props control placement relative to the trigger. Positioning uses CSS Anchor Positioning where supported, with a JavaScript measurement fallback. - The component is composed from four parts: `Root` manages state and context, + The component is composed from six parts: `Root` manages state and context, `Trigger` renders a button that activates the tooltip, `Popup` contains the label content, - and `Arrow` renders a decorative pointer. Wrap multiple tooltips in a `Tooltip.Provider` + `Label` renders the tooltip body, `Shortcut` renders an optional keyboard hint, and + `Arrow` renders a decorative pointer. Wrap multiple tooltips in a `Tooltip.Provider` to coordinate open/close timing across a group — once a tooltip becomes visible, adjacent tooltips open instantly within the `timeout` window, skipping the normal `delay`. @@ -216,4 +221,4 @@ The trigger receives `aria-describedby` pointing to the popup when open. The pop - +