@equinor/eds-core-react
Version:
The React implementation of the Equinor Design System
25 lines (22 loc) • 682 B
JavaScript
import { forwardRef } from 'react';
import styled from 'styled-components';
import { primary } from './Card.tokens.js';
import { jsx } from 'react/jsx-runtime';
const {
spacings
} = primary;
const StyledCardContent = styled.div.withConfig({
displayName: "CardContent__StyledCardContent",
componentId: "sc-esm4ym-0"
})(["display:grid;padding:0 ", " 0 ", ";&:last-child{padding-bottom:", ";}"], spacings.right, spacings.left, spacings.bottom);
const CardContent = /*#__PURE__*/forwardRef(function CardContent({
children,
...props
}, ref) {
return /*#__PURE__*/jsx(StyledCardContent, {
ref: ref,
...props,
children: children
});
});
export { CardContent };