@wener/console
Version:
Base console UI toolkit
15 lines (14 loc) • 670 B
JavaScript
import React, { forwardRef } from "react";
import { cn } from "../../tw/cn.js";
export const LeftContentRightLayout = /*#__PURE__*/ forwardRef(({ left, right, children, className, ...props }, ref) => {
return /*#__PURE__*/ React.createElement("div", {
className: cn("flex w-full flex-row", className),
ref: ref,
...props
}, left, /*#__PURE__*/ React.createElement("main", {
className: "LeftContentRightLayout__Content relative flex-1"
}, /*#__PURE__*/ React.createElement("div", {
className: "absolute inset-0 overflow-auto @container"
}, children)), right);
});
//# sourceMappingURL=LeftContentRightLayout.js.map