UNPKG

@times-components/card

Version:

The card component fades in and lays out content that typically consists of an image and a collection of textual elements (although this content could be anything). Card manages the layout of these elements, whilst providing a consistent loading state for

27 lines (23 loc) 807 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sharedDefaultProps = exports.sharedPropTypes = void 0; var _propTypes = _interopRequireDefault(require("prop-types")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var sharedPropTypes = { contentContainerClass: _propTypes["default"].string, imageContainerClass: _propTypes["default"].string, imageRatio: _propTypes["default"].number, isReversed: _propTypes["default"].bool, showImage: _propTypes["default"].bool }; exports.sharedPropTypes = sharedPropTypes; var sharedDefaultProps = { contentContainerClass: "", imageContainerClass: "", imageRatio: 3 / 2, isReversed: false, showImage: false }; exports.sharedDefaultProps = sharedDefaultProps;