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

Minor Changes

  • #3361
    bd430dc Thanks
    @segunadebayo! - Added api.type and api.getPageUrl(page). Adapters and custom
    components can now tell whether the controls are buttons or links, and build a page's URL without re-reading the
    machine props.

    const api = pagination.connect(service, normalizeProps)
    
    api.type // "button" | "link"
    api.getPageUrl(3) // "/page/3", or `undefined` when `getPageUrl` is not provided

Patch Changes

  • Updated dependencies [cfb5874,
    a125167,
    647e225]:
    • @zag-js/dom-query@1.45.0
    • @zag-js/utils@1.45.0
    • @zag-js/core@1.45.0
    • @zag-js/anatomy@1.45.0
    • @zag-js/types@1.45.0

Don't miss a new zag release

NewReleases is sending notifications on new releases.