@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
12 lines (9 loc) • 676 B
JavaScript
import { jsx, jsxs } from 'react/jsx-runtime';
import cx from 'classnames';
const PriceTable = ({ children }) => (jsx("div", { className: "cobalt-PriceTable", children: children }));
const PriceTableRow = ({ label, value, discounted = false, }) => (jsxs("div", { className: "cobalt-PriceTable__Row", children: [jsx("div", { className: "cobalt-PriceTable__Label", children: label }), jsx("div", { className: cx("cobalt-PriceTable__Value", {
"cobalt-PriceTable__Value--discount": discounted,
}), children: value })] }));
PriceTable.Row = PriceTableRow;
export { PriceTable, PriceTableRow, PriceTable as default };
//# sourceMappingURL=index.js.map