github chakra-ui/zag @zag-js/navigation-menu@1.30.0

latest releases: @zag-js/utils@1.35.3, @zag-js/toast@1.35.3, @zag-js/focus-trap@1.35.3...
3 months ago

Minor Changes

  • 87964a7 Thanks
    @segunadebayo! - - Add getItemIndicatorProps part

    • BREAKING: Removed getIndicatorTrackProps - use getListProps instead (list now includes position: relative)
    // Before
    <div {...api.getIndicatorTrackProps()}>
      <div {...api.getListProps()}>
        {/* items */}
      </div>
    </div>
    
    // After
    <div {...api.getListProps()}> {/* now acts as indicator track */}
      {/* items */}
    </div>

Patch Changes

  • 5dad198 Thanks
    @segunadebayo! - - Avoid focusing the trigger when hovering over it.
    • Add closeOnClick prop to getLinkProps to control whether the navigation menu closes when a link is clicked.
      Defaults to true (current behavior).
    • Separate ContentProps from LinkProps for getContentProps - previously it incorrectly used LinkProps.
  • Updated dependencies []:
    • @zag-js/anatomy@1.30.0
    • @zag-js/core@1.30.0
    • @zag-js/types@1.30.0
    • @zag-js/utils@1.30.0
    • @zag-js/dismissable@1.30.0
    • @zag-js/dom-query@1.30.0

Don't miss a new zag release

NewReleases is sending notifications on new releases.