iannbing / react-simple-tree-menu

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

Can i able to change default padding? #199

Open iceboy07 opened 2 years ago

iceboy07 commented 2 years ago

Instead of having default padding as 0.75rem can I have it as 0.25rem. Is it possible?

corysimmons commented 2 years ago

For posterity, if you create your own ItemComponent by copying https://github.com/iannbing/react-simple-tree-menu/blob/master/src/TreeMenu/renderProps.tsx to your own component file, then tweak it, you can do lots of stuff so far as cleaning up the markup and styles.