0.1.1 • Published 2 years ago

max-content-line v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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

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

Contact