github chakra-ui/zag @zag-js/drawer@1.38.0

latest releases: @zag-js/dom-query@1.38.0, @zag-js/tabs@1.38.0, @zag-js/collection@1.38.0...
14 hours ago

Minor Changes

  • c906c09 Thanks
    @segunadebayo! - - Add description anatomy part with aria-describedby support
    on the content element

    • Add SwipeArea part for swipe-to-open gestures from screen edges

      <div {...api.getSwipeAreaProps()} />
    • Add getDescriptionProps() and getSwipeAreaProps() to the connect API

    • Require intentional swipe movement before showing the drawer (no flash on pointer down)

    • Smooth settle animation from release point to fully open position

    • Add cross-axis scroll preservation to prevent drawer drag when scrolling horizontally

    • Fix swipe-to-dismiss in controlled mode (open: true without onOpenChange now blocks dismiss)

    • Set pointer-events: none on positioner in non-modal mode so the page stays interactive

    • Add initial focus management for non-modal mode

Patch Changes

  • Updated dependencies [4a395ad]:
    • @zag-js/dom-query@1.38.0
    • @zag-js/focus-trap@1.38.0
    • @zag-js/core@1.38.0
    • @zag-js/aria-hidden@1.38.0
    • @zag-js/dismissable@1.38.0
    • @zag-js/remove-scroll@1.38.0
    • @zag-js/anatomy@1.38.0
    • @zag-js/types@1.38.0
    • @zag-js/utils@1.38.0

Don't miss a new zag release

NewReleases is sending notifications on new releases.