Skip to content

Commit 08c6d54

Browse files
committed
Merge branch 'create-type-options-for-button-ref' of github.com:caryaharper/react-accessible-dropdown-menu-hook into create-type-options-for-button-ref
2 parents a939103 + b21ca90 commit 08c6d54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/docs/design/type-parameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Type constraint | Default | Possible values
88
:--- | :--- | :---
99
`HTMLElement` | `HTMLButtonElement` | Any type that extends `HTMLElement`
1010

11-
```js
11+
```tsx
1212
const { buttonProps, itemProps, isOpen } = useDropdownMenu<HTMLDivElement>(3);
1313
```
1414

15-
```jsx
15+
```tsx
1616
<div {...buttonProps} id='menu-button'>
1717
Example
1818
</div>

0 commit comments

Comments
 (0)