Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

879 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm (tag) npm bundle size GitHub Workflow Status Discord Shield

Image

A GUI you are going to lava.
Customizable, extensible and beautiful by default.



🚧🚧 This repo is under heavy development 🚧🚧

Features

  • ⭐️ Beautiful by default
  • 🎚 More than 12 different kinds of inputs available
  • 🧐 Smart input type recognition
  • 🔌 Easy-to-make plugins
  • ✅ Keyboard accessible
  • ⚡️ No setup necessary

Installation

npm i leva

Quick start

Simply call the useControls hook from anywhere in your app:

import { useControls } from 'leva'

function MyComponent() {
  const { name, aNumber } = useControls({ name: 'World', aNumber: 0 })

  return (
    <div>
      Hey {name}, hello! {aNumber}
    </div>
  )
}

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

Documentation

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Image
Andrew Prifer

🤔 💻
Image
Aria

🤔
Image
David Bismut

🤔 💻
Image
Dmitry Ivakhnenko

💻
Image
Gianmarco

🤔 💻
Image
Guido Vizoso

💻
Image
Han

🎨
Image
Ivan Rossi

🐛
Image
Laurin Quast

💻 🤔
Image
Marco Fugaro

🤔
Image
Marco Ludovico Perego

🤔
Image
Piotr Monwid-Olechnowicz

📖
Image
clementcassajus

🎨
Image
thephoenixofthevoid

🐛

This project follows the all-contributors specification. Contributions of any kind welcome!

About

🌋 React-first components GUI

Topics

Resources

Code of conduct

Contributing

Stars

6.2k stars

Watchers

24 watching

Forks

Releases

Contributors

Languages