twico-ui 1.18.2 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/llms.txt CHANGED
@@ -2980,7 +2980,9 @@ Props:
2980
2980
  - `label` — `React.ReactNode` · **required** — The short hint text or content revealed on hover or focus, ideal for describing icon buttons without cluttering the layout.
2981
2981
  - `placement` — `"top" | "bottom" | "left" | "right"` · default `"top"` — Chooses which side of the trigger the tooltip appears on, one of top, bottom, left, or right (default top).
2982
2982
  - `delay` — `number` · default `120` — Open delay in milliseconds before the tooltip appears (default 120), preventing flicker as the pointer passes over triggers.
2983
- - `children` — `React.ReactNode` · **required** — The single trigger element the tooltip wraps and attaches its hover and focus listeners to.
2983
+ - `children` — `React.ReactNode` — The single trigger element the tooltip wraps and attaches its hover and focus listeners to. Omitted in anchored mode.
2984
+ - `anchor` — `Element | null` — Anchored mode: position one tooltip against this element instead of wrapping a trigger (renders only the portaled bubble). Lets a data grid drive a single tooltip for whichever cell is hovered.
2985
+ - `open` — `boolean` — Anchored mode only: controlled visibility. Pair with anchor; the parent owns show/hide (and Escape).
2984
2986
 
2985
2987
  ```jsx
2986
2988
  import { Tooltip } from "twico-ui";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twico-ui",
3
- "version": "1.18.2",
3
+ "version": "1.19.0",
4
4
  "description": "Twico UI — a free, modern, themeable React + Tailwind-friendly component library. 61 components with dark mode, motion, and accessibility built in.",
5
5
  "license": "MIT",
6
6
  "author": "Twico UI",