UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

30 lines 1.23 kB
var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; // REACT import * as React from 'react'; // VENDOR import classNames from 'classnames'; import styled, { css } from '@xstyled/styled-components'; const StyledCardActionArea = styled('div') ` box-sizing: border-box; position: relative; display: inline-block; font-family: base; width: 100%; border-top: light; ${({ backgroundColor = 'white' }) => css({ backgroundColor })}; `; export const CardActionArea = (_a) => { var { className, children } = _a, props = __rest(_a, ["className", "children"]); return (React.createElement(StyledCardActionArea, Object.assign({ className: classNames('anchor-card-action-area', className) }, props), children)); }; //# sourceMappingURL=CardActionArea.component.js.map