DOM & Events

useDOM

Utility functions for common DOM operations and element manipulation.

import { useDOM } from "saha-ui"

Uses

Collection of small DOM utilities and helpers (window scroll, focus helpers, etc.). Use these helpers to simplify common DOM tasks.

Props

NameTypeDescriptionDefault
noneNo single hook export; contains utilities used by other hooks.-

Returns

NameDescription
utilitiesVarious DOM helper functions.

Example

import { someDomUtil } from 'saha-ui'; // use utility as needed

Notes

Refer to the file `src/hooks/useDOM.ts` for specific functions.
Saha UI - The Modern React Component Library