react-component / collapse

React Collapse / Accordion
http://react-component.github.io/collapse/
MIT License
323 stars 133 forks source link

Allow all html elements to be styled from JavaScript #109

Open rickthepick opened 5 years ago

rickthepick commented 5 years ago

Currently the only practical way to style some of the div elements is with css, e.g.,

/ override default rc-collapse-content / div.rc-collapse-content { padding: 0 5px; }

/ override default rc-collapse-content-box / div.rc-collapse-content > div.rc-collapse-content-box { margin-top: 5px; margin-bottom: 5px; }

Please provide a way to override these styles from JavaScript. This will allow these elements to be styled using Glamorous or Glamor or Emotion, etc.

ghost commented 5 years ago

I can style all HTML really well with styled-components, which is also a css-in-js library.

Or do I miss something?