Minor Changes
-
cd6918eThanks
@segunadebayo! - AddgetPageUrlprop for generatinghrefattributes when using
pagination as links.- Added
getPageUrlfunction 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}`, })
- Added
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