Convert CSS rules or a bare declaration list into JavaScript style objects, camelCased and quoted, ready for a style prop or a CSS-in-JS file.
The result appears hereA leading dash is dropped and the rest is camelCased with a capital first letter, so -webkit-backdrop-filter becomes WebkitBackdropFilter. That is the spelling React and every CSS-in-JS library expect.
Yes, and they keep their double dash as a quoted key, because --card-shadow is not a valid identifier and camelCasing it would break the variable.
Yes. Input with no braces is read as a declaration list, which is what you get from a style attribute or from copying a rule out of dev tools, and you can output it as a ready style prop.