github chakra-ui/zag @zag-js/pagination@1.25.0

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

Minor Changes

  • cd6918e Thanks
    @segunadebayo! - Add getPageUrl prop for generating href attributes when using
    pagination as links.

    • Added getPageUrl function prop that receives { page, pageSize } and returns a URL string
    • Only applies when type="link" to generate proper href attributes for pagination items and navigation buttons
    const service = useMachine(pagination.machine, {
      type: "link",
      getPageUrl: ({ page, pageSize }) => `/products?page=${page}&size=${pageSize}`,
    })

Patch Changes

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

Don't miss a new zag release

NewReleases is sending notifications on new releases.