Skip to content

Instantly share code, notes, and snippets.

@ViliamKopecky
Created March 17, 2022 16:46
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/d066f2f588b37599ae578e2537d2a3e0 to your computer and use it in GitHub Desktop.
Save ViliamKopecky/d066f2f588b37599ae578e2537d2a3e0 to your computer and use it in GitHub Desktop.
TypeScript definitions for React.CSSProperties with custom CSS properties support
declare namespace React {
interface CSSProperties {
[key: `--${string}`]: string | number | null | undefined
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment