Releases: pmndrs/leva
[email protected]
Patch Changes
-
50d850a: BREAKING CHANGE: Replace
hideTitleBar
withtitleBar
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 thetitleBar
property.<Leva titleBar={{ title: 'Some Title', }} />
Its is now possible to disable dragging of the panel via the
drag
option to thetitleBar
property.<Leva titleBar={{ drag: false, }} />
It is now possible to enable or disable filtering of the panel values via the
filter
option on thetitleBar
property.<Leva titleBar={{ filter: true, }} />
[email protected]
Patch Changes
- e0fdefc: types: fix beautifier union type.
[email protected]
Patch Changes
- a7f9bf1: types: don't use union type when not using objects as plugin function args.
[email protected]
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.
[email protected]
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-ui/[email protected]
@leva-ui/[email protected]
@leva-ui/[email protected]
Patch Changes
- 26ead12: Feat: add cssEasing to returned prop
@leva-ui/[email protected]
[email protected]
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] }) })