UNPKG

chowa

Version:

UI component library based on React

28 lines (27 loc) 975 B
/** * @license chowa v1.1.3 * * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn). * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const PropTypes = require("prop-types"); const utils_1 = require("../utils"); const classNames = require("classnames"); const Paragraph = (props) => { const { className, style, children } = props; const comonentClass = classNames({ [utils_1.preClass('typography-paragraph')]: true, [className]: utils_1.isExist(className) }); return (React.createElement("div", Object.assign({ className: comonentClass, style: style }, utils_1.omitProps(props, ['className', 'style'])), children)); }; Paragraph.propTypes = { className: PropTypes.string, style: PropTypes.object }; exports.default = Paragraph;