Skip to content

@zag-js/meter@2.0.0-next.4

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 13 Nov 21:08
· 2 commits to main since this release
824e7cd

Major Changes

  • #3342
    d6089c3 Thanks
    @github-actions! - - Clamp controlled values to min and max, and allow
    min to equal max.

    • Fall back to min when the value is NaN.

    • Fix percentAsString using the value format instead of a percent.

    • Breaking: Default the value to min instead of the midpoint. Pass a value to keep the old default.

      - meter.machine({ min: 0, max: 100 })
      + meter.machine({ min: 0, max: 100, defaultValue: 50 })

Patch Changes

  • Updated dependencies [a80b307]:
    • @zag-js/dom-query@2.0.0-next.4
    • @zag-js/core@2.0.0-next.4
    • @zag-js/anatomy@2.0.0-next.4
    • @zag-js/types@2.0.0-next.4
    • @zag-js/utils@2.0.0-next.4