-
Type '{ children: Element[]; sx: { backgroundColor: string; borderRadius: number; fontSize: number; margin: number; padding: number; }; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes, HTMLDivElement>'. Property 'sx' does not exist on type 'DetailedHTMLProps<HTMLAttributes, HTMLDivElement>'.ts(2322) how to solve this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
ThemeUI expects you to exclusively use ThemeUI components, at least when you're passing the So replace your |
Beta Was this translation helpful? Give feedback.
-
It should Just Work(TM). Here's a CodeSandbox. https://codesandbox.io/s/vibrant-goldwasser-cfenj?file=/src/App.tsx I'll try to help you out, but I think we need more details. |
Beta Was this translation helpful? Give feedback.
It should Just Work(TM). Here's a CodeSandbox.
https://codesandbox.io/s/vibrant-goldwasser-cfenj?file=/src/App.tsx
I'll try to help you out, but I think we need more details.