Skip to content

Commit e026cfc

Browse files
committed
added code example
1 parent 27ee90c commit e026cfc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

website/docs/design/options.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@ Option | Default | Possible values
1010

1111
Option | Explanation
1212
:--- | :---
13-
`disableFocusFirstItemOnClick` | If specified as `true` the default behavior of focusing the first menu item on click will be disabled. The menu button will instead retain focus.
13+
`disableFocusFirstItemOnClick` | If specified as `true` the default behavior of focusing the first menu item on click will be disabled. The menu button will instead retain focus.
14+
15+
```js
16+
const { buttonProps, itemProps, isOpen, setIsOpen } = useDropdownMenu(numberOfItems, {
17+
disableFocusFirstItemOnClick: true,
18+
});
19+
```

0 commit comments

Comments
 (0)