Packages

  • components
  • core
  • hooks
  • notify
  • server

@enotion/hooks

Custom React hooks for state management and theming

Installation

npm install @enotion/hooks

Modules

useAnimatedModals

Hook for managing and animating modals through the layout context

useClipboard

Hook for managing clipboard operations

useColorPalette

Hook for managing color palettes and themes

useElementSize

Hook for tracking the size of a DOM element

useEventListener

Hook for adding and removing event listeners

useFetch

Hook for fetching data and inferring data types

useIsMounted

Hook to determine if a component is currently mounted

useLocalStorage

Hook for managing state synchronized with localStorage

useOutsideClick

Hook for detecting clicks outside a specified element

usePreload

Hook for preloading resources

useScript

Hook for dynamically loading external scripts

useSearch

Hook for searching and filtering data

useSVG

Hook for loading and manipulating SVGs

useTheme

Hook for managing application theme

useVisibility

Hook for tracking the visibility of a DOM element