Skip to content

Instantly share code, notes, and snippets.

@ViliamKopecky
Created January 4, 2022 12:32
Show Gist options
  • 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