#Menu and withProps
5 messages · Page 1 of 1 (latest)
Probably an error, I'll look into it
Hi @strange marsh, sorry for late response 😅, i just want to let you know, after testing out the Menu.withProps like:
import { Menu } from '@mantine/core';
export const ActionMenu = Menu.withProps({
radius: 'md',
closeOnItemClick: false,
styles: {
item: {
borderRadius: 0,
padding: 0,
},
divider: {
margin: 0,
},
},
});
When used in component like:
<ActionMenu>
...
</ActionMenu>
I got ts error:
JSX element type 'ActionMenu' does not have any construct or call signatures.ts(2604)
'ActionMenu' cannot be used as a JSX component.
Its type 'MenuProps' is not a valid JSX element type.ts(2786)
Thank you
Okay, I'll have a look.
Have you updated to the latest version?
Yeah already updated to latest v7.17.2