bvaughn / react-resizable-panels

https://react-resizable-panels.vercel.app/
MIT License
3.87k stars 135 forks source link

Allow `PanelGroup` to receive additional props #196

Closed AmirTugi closed 10 months ago

AmirTugi commented 1 year ago

Heya, I noticed that PanelGroup renders a component and passes some styling and data props. Here's where this magic happens.

Something I'd like to ask is the ability to pass any additional props along. In my case I am wrapping with another div as a workaround, but it would be nice to be able to avoid a div soup and pass the relevant props directly to PanelGroup.

Cheers! 🥂

bvaughn commented 10 months ago

Feel free to open a PR with a proposal and I will look it over.

bvaughn commented 10 months ago

I will support this in v1.0 (#230)