Skip to content

Instantly share code, notes, and snippets.

@ViliamKopecky
Created January 4, 2022 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ViliamKopecky/2d21119d80013c0322e04b9f4a8fad72 to your computer and use it in GitHub Desktop.
Save ViliamKopecky/2d21119d80013c0322e04b9f4a8fad72 to your computer and use it in GitHub Desktop.
React extend declaration of CSSProperties with custom properties
declare module 'react' {
interface CSSProperties {
[key: `--${string}`]?: string | number | undefined
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment