UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

42 lines (41 loc) 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _clsx = require("clsx"); var _SpacingUtils = require("../space/SpacingUtils.js"); var _withComponentMarkers = _interopRequireDefault(require("../../shared/helpers/withComponentMarkers.js")); var _jsxRuntime = require("react/jsx-runtime"); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function CardList(props) { const { children, className, top, right, bottom, left, space, ...rest } = props; const params = (0, _SpacingUtils.useSpacing)({ top, right, bottom, left, space }, { ...rest, className: (0, _clsx.clsx)('dnb-card-list', className) }); return (0, _jsxRuntime.jsx)("ul", { ...params, children: children }); } (0, _withComponentMarkers.default)(CardList, { _supportsSpacingProps: true }); var _default = exports.default = CardList; //# sourceMappingURL=CardList.js.map