Skip to content

Commit d9ed6a8

Browse files
committed
Update website docs
1 parent a4b80f8 commit d9ed6a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

website/docs/design/return-object.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ This Hook returns an object of the following shape:
2626
];
2727
isOpen: boolean;
2828
setIsOpen: (newValue: boolean) => void;
29+
moveFocus: (itemIndex: number) => void;
2930
}
3031
```
3132

@@ -44,3 +45,4 @@ This Hook returns an object of the following shape:
4445
- **ref:** A React ref applied to each menu item, used to manage focus.
4546
- **isOpen:** A boolean value indicating if the menu is open or closed. The developer should use this value to make the menu visible or not.
4647
- **setIsOpen:** A function useful for allowing the developer to programmatically open/close the menu.
48+
- **moveFocus:** A function that changes internal pointer of currently focused element. This is useful when you want to allow seamless switching between keyboard and mouse use.

0 commit comments

Comments
 (0)