UNPKG

react-onsenui

Version:

Onsen UI - React Components for Hybrid Cordova/PhoneGap Apps with Material Design and iOS UI components

35 lines (30 loc) 649 B
import PropTypes from 'prop-types'; import 'onsenui/esm/elements/ons-card'; import onsCustomElement from '../onsCustomElement'; /** * @original ons-card * @category visual * @tutorial react/Reference/visual * @description * [en]Card component that can be used to display content.[/en] * [ja][/ja] * @example * <Card> <p>Some content</p> </Card> */ const Card = onsCustomElement('ons-card'); Card.propTypes = { /** * @name modifier * @type string * @description * [en] * Specify modifier name to specify custom styles. Optional. * [/en] * [ja][/ja] */ modifier: PropTypes.string }; export default Card;