ar-design
Version:
AR Design is a (react | nextjs) ui library.
11 lines (10 loc) • 369 B
JavaScript
import React from "react";
const Section = ({ children, fullWidth }) => {
// refs
const _selectionClassName = [];
if (fullWidth)
_selectionClassName.push("full-width");
return React.createElement("section", { className: _selectionClassName.map((c) => c).join(" ") }, children);
};
Section.displayName = "Layout.Section";
export default Section;