sanjmgr / react-control-panel-leva

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

Home Page:https://codesandbox.io/s/github/sanjmgr/react-control-panel-leva

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 />
    </>
  )
}

About

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

https://codesandbox.io/s/github/sanjmgr/react-control-panel-leva


Languages

Language:HTML 52.1%Language:TypeScript 44.4%Language:CSS 3.6%