Neurosis Prevention Mechanism

    react-css-truncate

    1.0.7 • Public • Published

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

    Install

    npm i react-css-truncate

    DownloadsWeekly Downloads

    12

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    1.67 kB

    Total Files

    3

    Last publish

    Collaborators

    • arepru