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

0.9.18 • Public • Published

Leva Spring

Installation

npm i @leva-ui/plugin-spring

Quick start

import { useControls } from 'leva'
import { spring } from '@leva-ui/plugin-spring'

function MyComponent() {
  const { mySpring } = useControls({ mySpring: spring({ tension: 100, friction: 30, mass: 1 }) })
  return mySpring.toString()
}

Readme

Keywords

none

Package Sidebar

Install

npm i @leva-ui/plugin-spring

Weekly Downloads

161

Version

0.9.18

License

MIT

Unpacked Size

46 kB

Total Files

23

Last publish

Collaborators

  • gsimone
  • dbismut