https://github.com/afeiship/react-ant-textarea-lines
Get lines with textarea for antd.
https://github.com/afeiship/react-ant-textarea-lines
input line lines react text textarea
Last synced: 4 days ago
JSON representation
Get lines with textarea for antd.
- Host: GitHub
- URL: https://github.com/afeiship/react-ant-textarea-lines
- Owner: afeiship
- Created: 2016-12-25T06:17:38.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2025-10-29T08:49:02.000Z (8 months ago)
- Last Synced: 2026-03-15T05:27:33.088Z (3 months ago)
- Topics: input, line, lines, react, text, textarea
- Language: TypeScript
- Homepage: https://afeiship.github.io/react-ant-textarea-lines/
- Size: 1.02 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-ant-textarea-lines
> Get lines with textarea for antd.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```shell
npm install -S @jswork/react-ant-textarea-lines
```
## usage
1. import css
```scss
@import "~@jswork/react-ant-textarea-lines/dist/style.css";
// or use sass
@import "~@jswork/react-ant-textarea-lines/dist/style.scss";
```
2. import js
```js
import React, { useState } from 'react';
import { Button } from 'antd';
import 'antd/dist/reset.css';
import ReactAntTextareaLines from '@jswork/react-ant-textarea-lines';
// import '@jswork/react-ant-textarea-lines/dist/style.scss';
function App() {
const value = ['https://www.baidu.com', 'https://ant.design/docs/react/introduce-cn'];
const [val, setVal] = useState(value);
return (
react-ant-textarea-lines
{
setVal(e.target.value);
console.log('ex:', e.target.value);
}}
/>
{
setVal([
'https://www.baidu.com',
'https://www.google.com',
'https://babeljs.io/repl',
'https://ourcodeworld.com/articles/read/309/top-5-best-code-editor-plugins-written-in-javascript',
]);
}}>
SetValue
);
}
export default App;
```
## preview
- https://afeiship.github.io/react-ant-textarea-lines/
## license
Code released under [the MIT license](https://github.com/afeiship/react-ant-textarea-lines/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/react-ant-textarea-lines
[version-url]: https://npmjs.org/package/@jswork/react-ant-textarea-lines
[license-image]: https://img.shields.io/npm/l/@jswork/react-ant-textarea-lines
[license-url]: https://github.com/afeiship/react-ant-textarea-lines/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-ant-textarea-lines
[size-url]: https://github.com/afeiship/react-ant-textarea-lines/blob/master/dist/react-ant-textarea-lines.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/react-ant-textarea-lines
[download-url]: https://www.npmjs.com/package/@jswork/react-ant-textarea-lines