1.0.7 • Published 5 years ago

react-css-truncate v1.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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>
);
1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago