UNPKG

@anoki/fse-marche-ui

Version:

FSE UI components library

15 lines (14 loc) 333 B
import * as o from "react"; import { useLayoutEffect as a } from "./index.es276.js"; var s = o.useId || (() => { }), f = 0; function n(t) { const [e, r] = o.useState(s()); return a(() => { r((u) => u ?? String(f++)); }, [t]), t || (e ? `radix-${e}` : ""); } export { n as useId }; //# sourceMappingURL=index.es241.js.map