iannbing / react-simple-tree-menu

A simple React tree menu component
MIT License
137 stars 48 forks source link

ItemComponent should have classname for isOpen #192

Open fczuardi opened 3 years ago

fczuardi commented 3 years ago

Following the examples on the README doc, one possible way to apply custom styles on a tree menu is to use the ItemComponent component.

The generated html <li> tags have classNames for indicating active and focused states (rstm-tree-item--active and rstm-tree-item--focused) but dont include one for the isOpen state. Here.

It would be nice to have one extra className for making custom style for open tree items easier via css.