UNPKG

@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! ⚡

35 lines (34 loc) • 1.47 kB
"use client"; import { jsx, jsxs } from "react/jsx-runtime"; import { GripVertical } from "lucide-react"; import "react"; import { cn } from "../../lib/utilities.js"; import resizable_module from "./resizable.module.js"; import * as __rspack_external_react_resizable_panels_8d5960a0 from "react-resizable-panels"; function ResizablePanelGroup({ className, ...props }) { return /*#__PURE__*/ jsx(__rspack_external_react_resizable_panels_8d5960a0.Group, { className: cn(resizable_module.group, className), ...props }); } const ResizablePanel = __rspack_external_react_resizable_panels_8d5960a0.Panel; function ResizableHandle({ withHandle = false, className, children, ...props }) { return /*#__PURE__*/ jsxs(__rspack_external_react_resizable_panels_8d5960a0.Separator, { className: cn(resizable_module.handle, className), ...props, children: [ Boolean(withHandle) && /*#__PURE__*/ jsx("div", { className: resizable_module.handleGrip, children: /*#__PURE__*/ jsx(GripVertical, { className: resizable_module.handleGripIcon }) }), children ] }); } ResizablePanelGroup.displayName = "ResizablePanelGroup"; ResizablePanel.displayName = "ResizablePanel"; ResizableHandle.displayName = "ResizableHandle"; export { ResizableHandle, ResizablePanel, ResizablePanelGroup }; //# sourceMappingURL=resizable.js.map