Skip to content

Using this package you can create a line restriction on text content. Your text content is limited to the number of lines you specify. And "..." are placed at the end of the text. https://www.npmjs.com/package/max-content-line

Notifications You must be signed in to change notification settings

Mehmet-Erdem-Akin/Max-Content-Line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MaxContentLine

image

Using this package you can create a line restriction on text content. Your text content is limited to the number of lines you specify. And "..." are placed at the end of the text.

Bu paketi kullanarak, metin içeriklerinize kolayca satır sınırlandırması koyabilirsiniz. Metin içeriği, belirlediğiniz satır sayısı ile sınırlandırılır. Ve metnin sonuna "..." koyulur.

Installation

npm i max-content-line

Usage

First, import the component. Then, you have to call the component in jsx and give values ​​to maxLine and content properties.

Öncelikle componenti import edin. Sonra, componenti çağırıp maxLine ve content özelliklerine belirlediğiniz değerleri girin.

    import MaxContentLine from 'max-content-line';
    <MaxContentLine
        maxLine={number}
        content="{your_content}"
    />

Advanced usage

Property Type Description Required
maxLine number Line count of text. Yes
content string Your content. Yes

Any bugs or feature request, feel free to submit a pull request on Github.

Contact

About

Using this package you can create a line restriction on text content. Your text content is limited to the number of lines you specify. And "..." are placed at the end of the text. https://www.npmjs.com/package/max-content-line

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published