Utility hooks for building interactive and accessible components.
Azemmur provides a collection of utility hooks that power the interactive components in the library. These hooks can be used independently to build custom components with similar functionality.
Available Hooks
- useFocusTrap — Trap focus within a container for accessible modals and dialogs.
- useIsMobile — Detect mobile viewport with customizable breakpoint.
- useKeyActions — Handle keyboard actions with customizable key bindings and modifiers.
- usePinchZoom — Handle pinch-to-zoom gestures on touch devices.
Built by raouf.codes. The source code is available on GitHub.
Last updated: 2/27/2026