DOM style property
backgroundColorelement.style.backgroundColor = valueConvert dashed CSS property names into the JavaScript names used by DOM style objects and React. The converter treats vendor prefixes, float, and custom properties as CSS-specific cases instead of generic kebab-case.
backgroundColorelement.style.backgroundColor = valuebackgroundColorstyle={{ backgroundColor: value }}Standard dashed CSS names map to the same camelCase spelling in DOM style objects and React style props.
Conversion runs locally in your browser.
The converter follows CSSOM and React style-object naming rather than treating every property as ordinary kebab-case.
Translate stylesheet property names when writing element.style assignments or reading CSSStyleProperties.
Prepare property names for React inline style objects without accidentally rewriting custom properties.