leva

🌋 React-first components GUI

MIT License

Downloads
368.5K
Stars
4.6K
Committers
30

Bot releases are visible (Hide)

leva - https://github.com/pmndrs/leva/releases/tag/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • 50d850a: BREAKING CHANGE: Replace hideTitleBar with titleBar option.

    For hiding the title bar the usages of <Leva hideTitleBar /> must be replaced with <Leva titleBar={false} />.

    It is now possible to overwrite the six dots rendered as the title by default by providing a title option to the titleBar property.

    <Leva
      titleBar={{
        title: 'Some Title',
      }}
    />
    

    Its is now possible to disable dragging of the panel via the drag option to the titleBar property.

    <Leva
      titleBar={{
        drag: false,
      }}
    />
    

    It is now possible to enable or disable filtering of the panel values via the filter option on the titleBar property.

    <Leva
      titleBar={{
        filter: true,
      }}
    />
    
leva - https://github.com/pmndrs/leva/releases/tag/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • e0fdefc: types: fix beautifier union type.
leva - https://github.com/pmndrs/leva/releases/tag/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • a7f9bf1: types: don't use union type when not using objects as plugin function args.
leva - https://github.com/pmndrs/leva/releases/tag/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • 7fd9f92: feat: allow input options to be spread inside custom plugin.

  • b4aa43d: Fix: add empty key warning.

  • 7fd9f92: fix: correct onUpdate for a blurred input: previously bluring an input from a
    store while selecting a second store would commit the change on the second
    store.

    fix: return number previous value when field is empty.

    types: (internal) fix default useInputContext types.

  • e21f2fe: fix: slider position overflowing with range input.

leva - https://github.com/pmndrs/leva/releases/tag/@leva-ui/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • 26ead12: Feat: add cssEasing to returned prop
leva - https://github.com/pmndrs/leva/releases/tag/@leva-ui/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • c997410: Plugin: add the Bezier plugin

    import { bezier } from '@leva-ui/plugin-bezier'
    useControls({ curve: bezier([0.25, 0.1, 0.25, 1]) })
    
  • Updated dependencies [c997410]

leva - https://github.com/pmndrs/leva/releases/tag/@leva-ui/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • c997410: Plugin: add the Bezier plugin

    import { bezier } from '@leva-ui/plugin-bezier'
    useControls({ curve: bezier([0.25, 0.1, 0.25, 1]) })
    
  • Updated dependencies [c997410]

leva - https://github.com/pmndrs/leva/releases/tag/@leva-ui/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • c997410: Plugin: add the Bezier plugin

    import { bezier } from '@leva-ui/plugin-bezier'
    useControls({ curve: bezier([0.25, 0.1, 0.25, 1]) })
    
  • Updated dependencies [c997410]

leva - https://github.com/pmndrs/leva/releases/tag/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • c997410: Plugin: add the Bezier plugin

    import { bezier } from '@leva-ui/plugin-bezier'
    useControls({ curve: bezier([0.25, 0.1, 0.25, 1]) })
    
leva - https://github.com/pmndrs/leva/releases/tag/@leva-ui/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • edc8847: Breaking: change how leva/plugin exports components.

    // before
    import { Row, Label, String } from 'leva/plugin'
    
    // after
    import { Components } from 'leva/plugin'
    const { Row, Label, String } = Components
    

    Feat: add useValue / useValues hooks that let an input query other inputs values.

    Feat: normalize has additional arguments to its signature:

    /**
     * @path the path of the input
     * @data the data available in the store
     */
    const normalize = (input: Input, path: string, data: Data)
    

    Feat: sanitize has additional arguments to its signature:

    /**
     * @path the path of the input
     * @store the store
     */
    const sanitize = (
      value: any,
      settings: Settings,
      prevValue: any,
      path: string,
      store: StoreType
    )
    

    Styles: better feedback when dragging number from inner label.

    Plugin: add the Plot plugin 📈

    import { plot } from '@leva-ui/plugin-plot'
    useControls({ y: plot({ expression: 'cos(x)', graph: true, boundsX: [-10, 10], boundsY: [0, 100] }) })
    
  • Updated dependencies [edc8847]

leva - https://github.com/pmndrs/leva/releases/tag/[email protected]

Published by github-actions[bot] over 3 years ago

Minor Changes

  • edc8847: Breaking: change how leva/plugin exports components.

    // before
    import { Row, Label, String } from 'leva/plugin'
    
    // after
    import { Components } from 'leva/plugin'
    const { Row, Label, String } = Components
    

    Feat: add useValue / useValues hooks that let an input query other inputs values.

    Feat: normalize has additional arguments to its signature:

    /**
     * @path the path of the input
     * @data the data available in the store
     */
    const normalize = (input: Input, path: string, data: Data)
    

    Feat: sanitize has additional arguments to its signature:

    /**
     * @path the path of the input
     * @store the store
     */
    const sanitize = (
      value: any,
      settings: Settings,
      prevValue: any,
      path: string,
      store: StoreType
    )
    

    Styles: better feedback when dragging number from inner label.

    Plugin: add the Plot plugin 📈

    import { plot } from '@leva-ui/plugin-plot'
    useControls({ y: plot({ expression: 'cos(x)', graph: true, boundsX: [-10, 10], boundsY: [0, 100] }) })
    
leva - https://github.com/pmndrs/leva/releases/tag/@leva-ui/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • edc8847: Breaking: change how leva/plugin exports components.

    // before
    import { Row, Label, String } from 'leva/plugin'
    
    // after
    import { Components } from 'leva/plugin'
    const { Row, Label, String } = Components
    

    Feat: add useValue / useValues hooks that let an input query other inputs values.

    Feat: normalize has additional arguments to its signature:

    /**
     * @path the path of the input
     * @data the data available in the store
     */
    const normalize = (input: Input, path: string, data: Data)
    

    Feat: sanitize has additional arguments to its signature:

    /**
     * @path the path of the input
     * @store the store
     */
    const sanitize = (
      value: any,
      settings: Settings,
      prevValue: any,
      path: string,
      store: StoreType
    )
    

    Styles: better feedback when dragging number from inner label.

    Plugin: add the Plot plugin 📈

    import { plot } from '@leva-ui/plugin-plot'
    useControls({ y: plot({ expression: 'cos(x)', graph: true, boundsX: [-10,10], boundsY: [0, 100] }) })
    
  • Updated dependencies [edc8847]

leva - https://github.com/pmndrs/leva/releases/tag/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • f9f7f1e: - Have Select accept functions as value or options. Fixes #165.
    • Temporarily type the set function values with any when useControls is used with the function API. In the future, we should infer th value type from the sanitize function.
leva - https://github.com/pmndrs/leva/releases/tag/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • d2eaf58: fix: properly resolves value-keyed objects for the Select input.
leva - https://github.com/pmndrs/leva/releases/tag/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • 98984e1: types: fix `set types in transient mode
leva - https://github.com/pmndrs/leva/releases/tag/@leva-ui/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

leva - https://github.com/pmndrs/leva/releases/tag/[email protected]

Published by github-actions[bot] over 3 years ago

Minor Changes

  • 0b7e968: Add the invertY setting for the Vector2D joystick for inverting the y coordinate.

    BREAKING: The default behavior has been changed. If you want the same behavior as in previous versions you will have to set the joystick option to 'invertY'.

    const values = useControl({
      vector2d: {
        value: [0, 0],
        joystick: 'invertY',
      },
    })
    

Patch Changes

  • f323cfc: Feat: onChange callback for transient updates

    useControls({ color: { value: 'red', onChange: v => console.log(v) } })
    
leva - https://github.com/pmndrs/leva/releases/tag/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • fa909f0: Allow useControls to update settings and input options when dependency array changes. (See #124)
leva - https://github.com/pmndrs/leva/releases/tag/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • 72bcebe: Reject null Vectors
leva - https://github.com/pmndrs/leva/releases/tag/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • 66dcb79: Add id to root div so that we're sure to always use the same root div. This should fix #106.
  • c6a69e3: Fix scrollbars flashing when collapsing a folder. Fixes #139.
  • 9e32b2c: Prevent errors in node environments by aliasing stitches global identifier to _global as global indentifier is reserved
Package Rankings
Top 1.15% on Npmjs.org
Badges
Extracted from project README
npm (tag) npm bundle size Discord Shield
Related Projects