/react-control-panel-leva

Customizable, extensible, and beautiful GUI for Interactive control panel with React and Leva.

Primary LanguageHTML

Getting Started

Install

npm i leva

Basics

To use Leva, simply import useControls and use it anywhere in your app:

import React from 'react'
import { useControls } from 'leva'

const ControlPanel = () => {
  const { name } = useControls({ name: 'Leva' })
  return name
}

const App = () => {
  return (
    <>
      <ControlPanel />
    </>
  )
}