Repository navigation
|
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? |
Answered by
hasparus
Aug 31, 2020
Replies: 2 comments 6 replies
|
ThemeUI expects you to exclusively use ThemeUI components, at least when you're passing the So replace your |
5 replies
|
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. |
1 reply
Answer selected by
igotfr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.