Collection of SolidJS composable functions
npm install solidjs-composablesCollection of essential Solidjs composition utilities
``bash`
npm i -S solidjs-composablesor
yarn add solidjs-composables
#### Status
- ✅ = Implemented
- ⏩ = Coming next
- ☠️ = Deprecating soon
#### Functions
- Logical
- ✅ useAtom - utility for using one variable for get/set Accessors;useToggle
- ✅ - a boolean switcher with utility functions;useEventListener
- Browser
- ✅ - event listener that unsubscribe on cleanup;useMedia
- ✅ - tracks state of a CSS media query;useMouse
- ✅ - track position of mouse/touch on window;usePrefersColor
- ⏩ usePrefersReducedMotion
- ⏩ useUrlSearchParams
- ⏩ useWindowSize
- ✅ - return window size (height and width) in pixels;useWindowScroll
- ✅ - return window scroll position (left, top);useCookie
- Storage
- ⏩ useLocalStorage
- ⏩ useSessionStorage
- ⏩ useElementBounding
- Elements
- ⏩ useElementEventListener
- ⏩ - element attached event listener that unsubscribe on cleanup;useElementScroll
- ⏩ useElementSize
- ⏩ useIntersectionObserver
- ⏩ useMutationObserver
- ⏩ useNetworkState` - tracks state of connection;
- Network
- ✅