@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
24 lines (23 loc) • 823 B
JavaScript
import { Fragment, jsx } from "react/jsx-runtime";
import classnames from "classnames";
function Cell({ children, divided, softDivided, className }) {
return /*#__PURE__*/ jsx("div", {
className: classnames("cobalt-cell", className, {
"cobalt-cell--divided": divided,
"cobalt-cell--softDivided": softDivided
}),
children: children
});
}
function Cells({ content, ...cellProps }) {
return /*#__PURE__*/ jsx(Fragment, {
children: content.map((c, i)=>/*#__PURE__*/ jsx(Cell, {
...cellProps,
children: c
}, `cell-${i}-${"string" == typeof c || "number" == typeof c ? c : "unknown-value"}`))
});
}
const components_Cell = Cell;
export default components_Cell;
export { Cells };
//# sourceMappingURL=index.js.map