UNPKG

@ntragas/pouncejstest

Version:

A collection of UI components from Panther labs

22 lines (20 loc) 766 B
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import React from 'react'; import Box from '../Box'; /** * Extends <a href="/#/Box">Box</a> * * A card is simply a basic layout component with additional style props. */ export var Card = /*#__PURE__*/React.forwardRef(function Card(_ref, ref) { var _ref$variant = _ref.variant, variant = _ref$variant === void 0 ? 'light' : _ref$variant, rest = _objectWithoutPropertiesLoose(_ref, ["variant"]); return /*#__PURE__*/React.createElement(Box, _extends({ ref: ref, bg: variant === 'light' ? 'navyblue-400' : 'navyblue-500', borderRadius: "medium" }, rest)); }); export default Card;