{"id":15862012,"url":"https://github.com/afeiship/react-ant-textarea-lines","last_synced_at":"2026-06-14T06:07:15.262Z","repository":{"id":57123020,"uuid":"77313461","full_name":"afeiship/react-ant-textarea-lines","owner":"afeiship","description":"Get lines with textarea for antd.","archived":false,"fork":false,"pushed_at":"2025-10-29T08:49:02.000Z","size":1067,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-15T05:27:33.088Z","etag":null,"topics":["input","line","lines","react","text","textarea"],"latest_commit_sha":null,"homepage":"https://afeiship.github.io/react-ant-textarea-lines/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-25T06:17:38.000Z","updated_at":"2025-10-29T08:49:06.000Z","dependencies_parsed_at":"2024-05-29T17:09:09.468Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/react-ant-textarea-lines","commit_stats":null,"previous_names":["afeiship/react-progress"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/react-ant-textarea-lines","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-ant-textarea-lines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-ant-textarea-lines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-ant-textarea-lines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-ant-textarea-lines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/react-ant-textarea-lines/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-ant-textarea-lines/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32575033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["input","line","lines","react","text","textarea"],"created_at":"2024-10-05T22:23:15.893Z","updated_at":"2026-05-03T15:32:35.092Z","avatar_url":"https://github.com/afeiship.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-ant-textarea-lines\n\u003e Get lines with textarea for antd.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```shell\nnpm install -S @jswork/react-ant-textarea-lines\n```\n\n## usage\n1. import css\n  ```scss\n  @import \"~@jswork/react-ant-textarea-lines/dist/style.css\";\n\n  // or use sass\n  @import \"~@jswork/react-ant-textarea-lines/dist/style.scss\";\n  ```\n2. import js\n  ```js\n  import React, { useState } from 'react';\n  import { Button } from 'antd';\n  import 'antd/dist/reset.css';\n  import ReactAntTextareaLines from '@jswork/react-ant-textarea-lines';\n\n  // import '@jswork/react-ant-textarea-lines/dist/style.scss';\n\n  function App() {\n    const value = ['https://www.baidu.com', 'https://ant.design/docs/react/introduce-cn'];\n    const [val, setVal] = useState(value);\n\n    return (\n      \u003cdiv\n        className=\"p-5 bg-slate-50 wp-5 mt-20 mx-auto rounded-lg border border-solid border-slate-200 hover:border-slate-300 hover:bg-slate-100 transition-all duration-200\"\u003e\n        \u003ch1\u003ereact-ant-textarea-lines\u003c/h1\u003e\n        \u003cReactAntTextareaLines\n          className=\"mb-5\"\n          placeholder=\"请输入内容\"\n          autoSize={{ minRows: 3, maxRows: 6 }}\n          value={val}\n          onChange={(e) =\u003e {\n            setVal(e.target.value);\n            console.log('ex:', e.target.value);\n          }}\n        /\u003e\n        \u003cButton\n          type=\"primary\"\n          onClick={() =\u003e {\n            setVal([\n              'https://www.baidu.com',\n              'https://www.google.com',\n              'https://babeljs.io/repl',\n              'https://ourcodeworld.com/articles/read/309/top-5-best-code-editor-plugins-written-in-javascript',\n            ]);\n          }}\u003e\n          SetValue\n        \u003c/Button\u003e\n      \u003c/div\u003e\n    );\n  }\n\n  export default App;\n  ```\n\n## preview\n- https://afeiship.github.io/react-ant-textarea-lines/\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/react-ant-textarea-lines/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/react-ant-textarea-lines\n[version-url]: https://npmjs.org/package/@jswork/react-ant-textarea-lines\n\n[license-image]: https://img.shields.io/npm/l/@jswork/react-ant-textarea-lines\n[license-url]: https://github.com/afeiship/react-ant-textarea-lines/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-ant-textarea-lines\n[size-url]: https://github.com/afeiship/react-ant-textarea-lines/blob/master/dist/react-ant-textarea-lines.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/react-ant-textarea-lines\n[download-url]: https://www.npmjs.com/package/@jswork/react-ant-textarea-lines\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-ant-textarea-lines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Freact-ant-textarea-lines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-ant-textarea-lines/lists"}