@arolariu/components
Version:
🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡
19 lines (18 loc) • 719 B
JavaScript
"use client";
import { jsx } from "react/jsx-runtime";
import { cn } from "../lib/utilities.js";
import Collapse_module from "./Collapse.module.js";
import * as __rspack_external_react from "react";
const Collapse = /*#__PURE__*/ __rspack_external_react.forwardRef(({ open, children, className, ...props }, ref)=>/*#__PURE__*/ jsx("div", {
ref: ref,
"data-state": open ? "open" : "closed",
className: cn(Collapse_module.collapse, className),
...props,
children: /*#__PURE__*/ jsx("div", {
className: Collapse_module.inner,
children: children
})
}));
Collapse.displayName = "Collapse";
export { Collapse };
//# sourceMappingURL=Collapse.js.map