npm.io
0.1.1 • Published 4 years ago

max-content-line

Licence
MIT
Version
0.1.1
Deps
0
Size
4 kB
Vulns
0
Weekly
0

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