1.0.7 • Published 7 years ago

react-css-truncate v1.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago