Skip to content

Commit 1beb92f

Browse files
committed
docs(use-popover): add Options table for id, positionArea, positionTry, delays
1 parent 8728c90 commit 1beb92f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

apps/docs/src/pages/composables/system/use-popover.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ flowchart TD
7272
usePopover --> Tooltip["Tooltip / Menu"]
7373
```
7474

75+
## Options
76+
77+
| Option | Type | Default | Notes |
78+
| - | - | - | - |
79+
| `id` | `string` | auto | Base ID for anchor name and popover `id`. Auto-generated if not provided |
80+
| `positionArea` | `string` | `'bottom'` | CSS `position-area` value — controls where the content appears relative to the anchor |
81+
| `positionTry` | `string` | `'most-width bottom'` | CSS `position-try-fallbacks` value — fallback positions when the primary area overflows |
82+
| `isOpen` | `Ref<boolean>` || External ref for bidirectional open state (e.g., from `defineModel`) |
83+
| `showDelay` | `number` | `0` | Milliseconds to wait before showing the popover (hover/focus use cases) |
84+
| `hideDelay` | `number` | `0` | Milliseconds to wait before hiding the popover (prevents premature close on mouse leave) |
85+
7586
## Reactivity
7687

7788
| Property/Method | Reactive | Notes |

0 commit comments

Comments
 (0)