import { t as e } from "../chunks/clsx.js";
import { useRef as t } from "react";
import { jsx as n } from "react/jsx-runtime";
//#region lib/ui/ElasticHeight.tsx
var r = ({ className: r, children: i, innerClassName: a, isExpanded: o = !1, min: s = 0, ...c }) => {
	let l = t(null);
	return /* @__PURE__ */ n("div", {
		...c,
		className: e("overflow-hidden transition-all duration-500 grid", "data-[expanded=true]:grid-rows-[1fr]", "data-[expanded=false]:grid-rows-[0fr]", r),
		"data-expanded": o,
		children: /* @__PURE__ */ n("div", {
			style: { minHeight: s },
			className: e("overflow-hidden", a),
			ref: l,
			children: i
		})
	});
};
//#endregion
export { r as ElasticHeight };

//# sourceMappingURL=ElasticHeight.js.map