#Menu and "className" property?

3 messages · Page 1 of 1 (latest)

fleet orbit
#

<Menu className="my-menu">seems to work fine, but TypeScript complains that

Property 'className' does not exist on type 'IntrinsicAttributes & MenuProps'. Did you mean 'classNames'?

Works for other component like Button, though.
How come?

polar bolt
fleet orbit
#

That makes sense, thank you!
I wonder why I tend to get the more complex stuff right, but fail on the easy ones.
Also, interestingly, it actually works to put a className on the Menu itself, and seems to have the same effect as putting it on Menu.Target and the same as putting it on the Menu.Target child component (sans the ts error).