# max-content-line

> You can easily add line limits to your content.

Latest version **0.1.1** (published 2022-01-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install max-content-line
pnpm add max-content-line
yarn add max-content-line
bun add max-content-line
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2022-01-11 |
| First published | 2022-01-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mehmet-erdem-akin |

## Links

- npm: https://www.npmjs.com/package/max-content-line
- npm.io page: https://npm.io/package/max-content-line

## Recent versions

- 0.1.1 (latest) — 2022-01-11
- 0.1.0 — 2022-01-11

## README

# MaxContentLine
![image](https://i.ibb.co/tC7RYKd/max-Content-Line.png)

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

<table>
	<tr>
		<th>Property</th>
		<th>Type</th>
		<th>Description</th>
		<th>Required</th>
	</tr>
	<tr>
		<td>maxLine</td>
		<td>number</td>
		<td>Line count of text.</td>
		<td>Yes</td>
	</tr>
	<tr>
		<td>content</td>
		<td>string</td>
		<td>Your content.</td>
		<td>Yes</td>
	</tr>
	
</table>

### Any bugs or feature request, feel free to submit a pull request on Github.

## Contact
- [mehmeterdemakin@outlook.com](mailto:mehmeterdemakin@outlook.com)

---
_Source: https://npm.io/package/max-content-line · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
