github chakra-ui/zag @zag-js/slider@1.42.0

latest releases: @zag-js/dom-query@1.42.0, @zag-js/live-region@1.42.0, @zag-js/remove-scroll@1.42.0...
5 hours ago

Minor Changes

  • f71bd89 Thanks
    @segunadebayo! - Fixed issue where Cmd/Ctrl + arrow keys produced values off
    the step grid (e.g. non-integer values when step: 1). Stepping with modifier keys now stays aligned to step.

    Replaced the implicit modifier-based stepping with explicit, configurable props:

    • Slider: added largeStep (defaults to 10 * step) used when Shift or PageUp/PageDown is pressed.
    • Number Input: added largeStep (defaults to 10 * step, on Shift) and smallStep (defaults to step / 10,
      on Alt).

    The defaults preserve the previous stepping magnitudes, so existing behavior is unchanged unless the new props are
    set.

Patch Changes

  • Updated dependencies []:
    • @zag-js/anatomy@1.42.0
    • @zag-js/core@1.42.0
    • @zag-js/types@1.42.0
    • @zag-js/utils@1.42.0
    • @zag-js/dom-query@1.42.0

Don't miss a new zag release

NewReleases is sending notifications on new releases.