I am looking to create a dropdown menu in React that allows users to select camelized CSS properties (such as width, color, textAlign) for inline styles.
Instead of manually inputting all the options for the dropdown, I had the idea of using the React.CSSProperties type as a value so that I wouldn't have to hard code anything. I'm not certain if this is feasible though.
Is there another method for retrieving the names of these properties that I may be unaware of?