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

0.9.32 • 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-dates

Weekly Downloads

444

Version

0.9.32

License

MIT

Unpacked Size

35.7 kB

Total Files

21

Last publish

Collaborators

  • gsimone
  • dbismut