Hooks
All custom hooks are exported from @xocialive/ui-components/hooks (or the default barrel).
Available hooks
| Hook | Purpose |
|---|---|
useToast | Dispatch global toast notifications |
usePagination | Manage page index, page size, and total pages |
useDisclosure | Boolean open/close state for modals and drawers |
useBreadcrumbs | Build breadcrumb trail from the current route |
useSyncedSearchParams | Sync component state with URL search params |
Import
import {
useToast,
usePagination,
useDisclosure,
useBreadcrumbs,
useSyncedSearchParams,
} from "@xocialive/ui-components/hooks";