Package Exports
- react-css-truncate
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-css-truncate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-css-truncate
Simple CSS multiline truncation for React components
Usage
npm i react-css-truncate
import linesTruncate from 'react-css-truncate';
// linesTruncate(lines: Number)
export const LineComponent = () => (
<div style={linesTruncate(2)}>
<div style={{...linesTruncate(1), width: '100px'}}></div>
</div>
);