UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

36 lines 863 B
import { clsx } from 'clsx'; import { useSpacing } from "../space/SpacingUtils.js"; import withComponentMarkers from "../../shared/helpers/withComponentMarkers.js"; import { jsx as _jsx } from "react/jsx-runtime"; function CardListItem(props) { const { children, className, center, top, right, bottom, left, space, ...rest } = props; const params = useSpacing({ top, right, bottom, left, space }, { ...rest, className: clsx('dnb-card-list__item', center === true && 'dnb-card-list__item--center', center === 'when-small' && 'dnb-card-list__item--center-when-small', className) }); return _jsx("li", { ...params, children: children }); } withComponentMarkers(CardListItem, { _supportsSpacingProps: true }); export default CardListItem; //# sourceMappingURL=CardListItem.js.map