react-css-truncate
v1.0.7
Published
CSS multiline truncation
Downloads
3
Maintainers
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>
);