UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

16 lines (13 loc) 658 B
import { jsx, Fragment } from 'react/jsx-runtime'; import cx from 'classnames'; function Cell({ children, divided, softDivided, className, }) { return (jsx("div", { className: cx("cobalt-cell", className, { "cobalt-cell--divided": divided, "cobalt-cell--softDivided": softDivided, }), children: children })); } function Cells({ content, ...cellProps }) { return (jsx(Fragment, { children: content.map((c, i) => (jsx(Cell, { ...cellProps, children: c }, `cell-${i}-${typeof c === "string" || typeof c === "number" ? c : "unknown-value"}`))) })); } export { Cells, Cell as default }; //# sourceMappingURL=index.js.map