You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to pass styles as props in TypeScript, but I'm getting an error when I use a CSS variable. The error says that the type 'Color<...>' can't be assigned to 'Readonly<string | null | undefined>' in the style prop.
Expected behavior
Extend the type 'Readonly<string | null | undefined>' to include a CSS variable
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue
I'm trying to pass styles as props in TypeScript, but I'm getting an error when I use a CSS variable. The error says that the type 'Color<...>' can't be assigned to 'Readonly<string | null | undefined>' in the style prop.
Expected behavior
Extend the type 'Readonly<string | null | undefined>' to include a CSS variable
Steps to reproduce
The text was updated successfully, but these errors were encountered: