79411922

Date: 2025-02-04 13:52:56
Score: 1
Natty:
Report link

You can simply use JSDoc for this purpose. Take for example the following snippet:

 /**
 * @type {import("react").CSSProperties}
 */
const padStyle = {
  bottom: '20vh',
  right: '20vw'
}

export default padStyle

Vs code understands the JSDoc annotation and voila:

VSCode CSS intellisense

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pulsares