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

0.10.0 • 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)
}

/@leva-ui/plugin-plot/

    Package Sidebar

    Install

    npm i @leva-ui/plugin-plot

    Weekly Downloads

    169

    Version

    0.10.0

    License

    MIT

    Unpacked Size

    67.3 kB

    Total Files

    23

    Last publish

    Collaborators

    • gsimone
    • dbismut