@leva-ui/plugin-plot
TypeScript icon, indicating that this package has built-in type declarations

0.9.15 • Public • Published

Leva Plot

Installation

npm i @leva-ui/plugin-plot

Quick start

import { useControls } from "leva"
import { plot } from "@leva-ui/plugin-plot"

function MyComponent() {
  const { y } = useControls({ y: plot({ expression: 'cos(x)', graph: true, boundsX: [-10,10], boundsY: [0, 100] }) })
  return y(Math.PI)
}

Readme

Keywords

none

Package Sidebar

Install

npm i @leva-ui/plugin-plot

Weekly Downloads

163

Version

0.9.15

License

MIT

Unpacked Size

67.4 kB

Total Files

23

Last publish

Collaborators

  • gsimone
  • dbismut