UNPKG

@shopgate/pwa-common

Version:

Common library for the Shopgate Connect PWA.

21 lines (20 loc) 531 B
import React from 'react'; import PropTypes from 'prop-types'; import Dotdotdot from 'react-dotdotdot'; /** * The ellipsis text component. * @param {Object} props The component props. * @returns {JSX.Element} */ import { jsx as _jsx } from "react/jsx-runtime"; const Ellipsis = props => /*#__PURE__*/_jsx(Dotdotdot, { clamp: props.rows, className: `${props.className} common__ellipsis`, useNativeClamp: true, children: props.children }); Ellipsis.defaultProps = { className: '', rows: 3 }; export default Ellipsis;