UNPKG

koval-ui

Version:

React components collection with minimalistic design. Supports theming, layout, and input validation.

14 lines (13 loc) 403 B
"use client"; import { useState as r, useEffect as n } from "react"; import { useResizeObserver as p } from "../../internal/hooks/useResizeObserverNew.js"; const d = ({ width: t, ref: s }) => { const [i, o] = r(t), e = p(s); return n(() => { typeof e?.width == "number" && o(e?.width); }, [e?.width]), i; }; export { d as useResponsiveWidth }; //# sourceMappingURL=useResponsiveWidth.js.map