Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj committed Apr 26, 2023
1 parent cb3fea7 commit a39ccbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/data/base/components/menu/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ The following code snippet applies a CSS class called `my-listbox` to the listbo

#### Usage with TypeScript

In TypeScript, you can specify the custom component type used in the `slots.root` as a generic to the unstyled component. This way, you can safely provide the custom compoenent's props directly on the compnent:
In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component. This way, you can safely provide the custom root's props directly on the component:

```tsx
<Menu<typeof CustomComponent> slots={{ root: CustomComponent }} customProp />
Expand Down

0 comments on commit a39ccbc

Please sign in to comment.