{"id":20772830,"url":"https://github.com/101loop/react-field-tag","last_synced_at":"2026-04-18T23:34:33.773Z","repository":{"id":44751986,"uuid":"452242661","full_name":"101Loop/React-Field-Tag","owner":"101Loop","description":"React library for tag inputs","archived":false,"fork":false,"pushed_at":"2022-01-27T08:20:16.000Z","size":930,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-18T01:06:52.151Z","etag":null,"topics":["field-tag","input-tag","react","react-field-tag","react-library","reactjs","tag","tag-input"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/101Loop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-26T11:04:51.000Z","updated_at":"2022-01-28T09:01:28.000Z","dependencies_parsed_at":"2022-08-22T10:20:18.920Z","dependency_job_id":null,"html_url":"https://github.com/101Loop/React-Field-Tag","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/101Loop%2FReact-Field-Tag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/101Loop%2FReact-Field-Tag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/101Loop%2FReact-Field-Tag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/101Loop%2FReact-Field-Tag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/101Loop","download_url":"https://codeload.github.com/101Loop/React-Field-Tag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243112187,"owners_count":20238180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["field-tag","input-tag","react","react-field-tag","react-library","reactjs","tag","tag-input"],"created_at":"2024-11-17T12:23:11.347Z","updated_at":"2025-12-24T23:33:34.063Z","avatar_url":"https://github.com/101Loop.png","language":"TypeScript","readme":"# ReactFieldTag\n\n\u003e React library for tag inputs\n\n[![NPM](https://img.shields.io/npm/v/react-field-tag.svg)](https://www.npmjs.com/package/react-field-tag) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save react-field-tag\n```\n\n## Usage\n\n```tsx\nimport React from 'react'\n\nimport ReactFieldTag from 'react-field-tag'\n\n/// add below line to use default styling\nimport 'react-field-tag/dist/index.css'\n\nconst App = () =\u003e {\n  const [tags, setTags] = React.useState\u003cArray\u003cstring\u003e\u003e([]);\n\n  const onAdd = (tag: string) =\u003e {\n    setTags([...tags, tag]);\n  }\n\n  const onDelete = (index: number) =\u003e {\n    setTags(tags.filter((_, i) =\u003e i !== index));\n  }\n\n  return \u003cReactFieldTag tags={tags} onAdd={onAdd} onDelete={onDelete} /\u003e\n}\n\nexport default App\n```\n\n## Demo\n\n![Demo](https://github.com/iamdipanshusingh/React-Field-Tag/blob/master/docs/demo.gif)\n\n## Table of contents\n\n- [StyleClasses](#StyleClasses)\n- [ReactFieldTagProps](#ReactFieldTagProps)\n\n### StyleClasses\n\n#### Type declaration\n\n| Name | Type | Description |\n| :------ | :------ | :------ |\n| `root?` | string | style class for the whole input and tag container |\n| `input?` | string | style class for input |\n| `tags?` | string | style class for tags container |\n| `tag?` | string | style class for tag(s) |\n\n___\n\n### ReactFieldTagProps\n\n#### Type declaration\n\n| Name | Type | Description | Default |\n| :------ | :------ | :------ | :------ |\n| `tags` | Array of string | an array of tags | - |\n| `delimiter?` | string | determines a point at which the string separates into tags | `,` |\n| `classes?` | [StyleClasses](#StyleClasses) | style classes for styling | - |\n| `closeIcon?` | ReactElement | element to be used as close icon | `x` (close icon from icons8) |\n| `onAdd` | function | a callback function called when a new tag is to be added | - |\n| `onDelete` | function | a callback function called on deleting a tag | - |\n\n## License\n\nMIT © [iamdipanshusingh](https://github.com/iamdipanshusingh)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F101loop%2Freact-field-tag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F101loop%2Freact-field-tag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F101loop%2Freact-field-tag/lists"}