pmndrs / leva

🌋 React-first components GUI

Home Page:https://leva.pmnd.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Have 2 separate independent panels with different options each

donlluque opened this issue · comments

Hello everyone! First of all, thank you in advance for all the help you can provide.

Is it possible to have 2 separate independent panels with different options at the same time in one component?
For example, I have an image where in one panel I would like to change the color and position.
And in another separate panel, I would like to make it visible or change the opacity.

Thank you!

This is possible! Just have to create different leva stores using the useCreateStore hook and pass them into the store field in the useControls hooks options

Any chance the team add a proper documentation?