1.0.1 • Published 3 years ago

truncate-string-react v1.0.1

Weekly downloads
142
License
MIT
Repository
-
Last release
3 years ago

React Truncate String

Customizable React component for truncating your string.

Installation

npm:

npm install truncate-string-react

Example

import React from "react";
import TruncateString from "truncate-string-react";

export default App function() {
    return (
        <TruncateString
            string="This is the truncated string, Enjoy Guys"
            length={10}
            typeCount={4}
            type="."
        />
    );
  }
};

Options

PropTypeDescriptionDefault
stringStringThe input text to truncate.'-'
lengthObjectThe length of the truncated string.length of your string
typeStringThe type of the element which will be show after truncated string.'.'
typeCountObjectThe number of type which will be show after truncated string.3

Liscence

Anzil Sulthan
1.0.1

3 years ago

1.0.0

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago