React-first components GUI
npm i levaSimply call the useControls hook from anywhere in your app:
import { useControls } from 'leva'
function MyComponent() {
const { name, aNumber } = useControls({ name: 'World', aNumber: 0 })
return (
)
}NOTE: Using Leva with React 18 will cause a console error about createRoot which you can safely ignore, or fix by following the instructions here: discussion
Thanks goes to these wonderful people (emoji key):
Andrew Prifer |
Aria |
David Bismut |
Dmitry Ivakhnenko |
Gianmarco |
Guido Vizoso |
Han |
Ivan Rossi |
Laurin Quast |
Marco Fugaro |
Marco Ludovico Perego |
Piotr Monwid-Olechnowicz |
clementcassajus |
thephoenixofthevoid |
This project follows the all-contributors specification. Contributions of any kind welcome!
No open issues yet, or sync has not completed.