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

latest releases: @zag-js/popover@1.33.0, @zag-js/types@1.33.0, @zag-js/store@1.33.0...
14 hours ago

Minor Changes

  • b29ba49 Thanks
    @segunadebayo! - Add thumbCollisionBehavior prop to control how thumbs behave
    when they collide during pointer interactions:
    • none (default): Thumbs cannot move past each other; excess movement is ignored.
    • push: Thumbs push each other without restoring their previous positions when dragged back.
    • swap: Thumbs swap places when dragged past each other.

Patch Changes

  • 14ce903 Thanks
    @segunadebayo! - Fix pointer movement when dragging slider thumb from its edge in
    thumbAlignment="contain" mode.

    The value calculation now correctly accounts for thumb inset, ensuring consistent behavior when:

    • Clicking on the track to set a value
    • Dragging the thumb from any position (center, left edge, or right edge)
  • Updated dependencies []:

    • @zag-js/anatomy@1.33.0
    • @zag-js/core@1.33.0
    • @zag-js/types@1.33.0
    • @zag-js/utils@1.33.0
    • @zag-js/dom-query@1.33.0

Don't miss a new zag release

NewReleases is sending notifications on new releases.