github chakra-ui/zag @zag-js/pin-input@2.0.0-next.0

latest releases: @zag-js/dnd@2.0.0-next.0, @zag-js/dismissable@2.0.0-next.0, @zag-js/popper@2.0.0-next.0...
pre-release7 hours ago

Major Changes

  • #3061
    1918417 Thanks
    @github-actions! - Breaking: count is now a required prop.

    The machine no longer infers the number of inputs by querying the DOM. Pass count explicitly.

      pinInput.machine({
        id: "pin",
    +   count: 4,
      })

    Why

    • Predictable — machine knows the count upfront without waiting for DOM to render
    • Simpler internals — no DOM queries or mutation observers to detect input elements
    • SSR-friendly — count is available before hydration
    • Consistent — aligns with how carousel, rating, and pagination handle counts

Patch Changes

  • Updated dependencies [5820feb]:
    • @zag-js/anatomy@2.0.0-next.0
    • @zag-js/types@2.0.0-next.0
    • @zag-js/dom-query@2.0.0-next.0
    • @zag-js/core@2.0.0-next.0
    • @zag-js/utils@2.0.0-next.0

Don't miss a new zag release

NewReleases is sending notifications on new releases.