@konstructio/ui
Version:
A set of reusable and customizable React components built for konstruct.io
14 lines (13 loc) • 294 B
JavaScript
import * as r from "react";
import { u as a } from "./index-CIAmiWcw.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
};