You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-4Lines changed: 28 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -121,13 +121,37 @@ This will ensure all event handlers will be registered rather being overruled by
121
121
122
122
| Property | Description | Type |
123
123
| -------- | ----------- | ---- |
124
-
| getReferenceProps | The merged attributes for the `reference` element| (userProps?: HTMLAttributes<Element>) => Record<string, unknown> |
125
-
| getFloatingProps | The merged attributes for the `floating` element| (userProps?: HTMLAttributes<Element>) => Record<string, unknown> |
126
-
| getItemProps | The merged attributes for when dealing with a list inside the `floating` element. |(userProps?: HTMLAttributes<Element> & ExtendedUserProps) => Record<string, unknown> |
124
+
| getReferenceProps | The merged attributes for the `reference` element. | (userProps?: HTMLAttributes<Element>) => Record<string, unknown> |
125
+
| getFloatingProps | The merged attributes for the `floating` element. | (userProps?: HTMLAttributes<Element>) => Record<string, unknown> |
126
+
| getItemProps | The merged attributes for when dealing with a list inside the `floating` element. | (userProps?: HTMLAttributes<Element> & ExtendedUserProps) => Record<string, unknown> |
| mouseOnly | Only allow pointers of type mouse to trigger the hover (thus excluding pens and touchscreens). | boolean | false |
151
+
| delay | Time in ms that will delay the change of the open state. Also accepts an object with open and close properties for finer grained control. | number | 0 |
152
+
| restMs | Time in ms that the pointer must rest on the reference element before the open state is set to true. | number | 0 |
153
+
| move | Whether moving the pointer over the floating element will open it, without a regular hover event required. | boolean | true |
154
+
| handleClose | Callback to handle the closing of the floating element. | HandleCloseFn | null |
0 commit comments