Skip to content

v1.5.0

Choose a tag to compare

@github-actions github-actions released this 25 Jul 08:47
d13fe95

Minor Changes

  • #41 9efcce1 Thanks @MikeNotThePope! - Add a hooks library (@mikenotthepope/substrateui/hooks).

    Borrowing the idea Mantine is best known for: a curated, SSR-safe, tree-shakeable set of React hooks for the state and browser plumbing every app needs — so the monolith ships the logic layer, not just the components.

    • StateuseDisclosure, useToggle, useCounter, usePrevious
    • Browser/DOMuseClipboard, useLocalStorage, useMediaQuery, useClickOutside, useHotkeys (with platform-aware mod), useElementSize, useIntersection, useIsMobile
    • Timing/refsuseDebouncedValue, useInterval, useMounted, useMergedRef

    All are unit-tested and exported from the new /hooks entry point.