UNPKG

@konstructio/ui

Version:

A set of reusable and customizable React components built for konstruct.io

14 lines (13 loc) 294 B
import * as r from "react"; import { u as a } from "./index-Cq1I1cG9.js"; var s = r[" useId ".trim().toString()] || (() => { }), i = 0; function n(e) { const [t, o] = r.useState(s()); return a(() => { o((u) => u ?? String(i++)); }, [e]), t ? `radix-${t}` : ""; } export { n as u };