Skip to content

@ariakit/react@0.3.1

Choose a tag to compare

@github-actions github-actions released this 10 Sep 20:47
· 4314 commits to main since this release
91b505c

Patch Changes

  • #2804 New in this version: Component providers

    Component providers are optional components that act as a higher-level API on top of component stores. They wrap Ariakit components and automatically provide a store to them.

  • #2797 Fixed a regression on Dialog regarding the timing of its "focus on hide" behavior.

  • #2801 Fixed values.slice error that would occur when clicking on FormCheckbox that uses an integer-like field name.

  • #2802 Added setMounted prop to useDisclosureStore and derived component stores. This callback prop can be used to react to changes in the mounted state. For example:

    useDialogStore({
      setMounted(mounted) {
        if (!mounted) {
          props.onUnmount?.();
        }
      },
    });
  • #2803 The Toolbar component can now render without needing an explicit store prop or a ToolbarProvider component wrap. Toolbar now also supports certain store props such as focusLoop, orientation, rtl, and virtualFocus.

  • Updated dependencies: @ariakit/react-core@0.3.1.