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
| Name | Type | Description | Default |
|---|---|---|---|
| none | No single hook export; contains utilities used by other hooks. | - |
Returns
| Name | Description |
|---|---|
| utilities | Various DOM helper functions. |
Example
import { someDomUtil } from 'saha-ui'; // use utility as neededNotes
Refer to the file `src/hooks/useDOM.ts` for specific functions.