{"id":24189287,"url":"https://github.com/harshmakadia/reactjs-tag-component","last_synced_at":"2025-10-16T10:06:25.882Z","repository":{"id":65514066,"uuid":"118741411","full_name":"Harshmakadia/reactjs-tag-component","owner":"Harshmakadia","description":"Ready to use tag component using npm package","archived":false,"fork":false,"pushed_at":"2020-06-12T14:26:21.000Z","size":75,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-14T07:56:38.284Z","etag":null,"topics":["javascript","reactjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Harshmakadia.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}},"created_at":"2018-01-24T09:16:48.000Z","updated_at":"2020-06-12T14:26:23.000Z","dependencies_parsed_at":"2023-01-26T20:55:23.570Z","dependency_job_id":null,"html_url":"https://github.com/Harshmakadia/reactjs-tag-component","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harshmakadia%2Freactjs-tag-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harshmakadia%2Freactjs-tag-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harshmakadia%2Freactjs-tag-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harshmakadia%2Freactjs-tag-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Harshmakadia","download_url":"https://codeload.github.com/Harshmakadia/reactjs-tag-component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233754738,"owners_count":18725057,"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":["javascript","reactjs"],"created_at":"2025-01-13T14:24:18.447Z","updated_at":"2025-09-21T12:33:13.762Z","avatar_url":"https://github.com/Harshmakadia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reactjs-tag-component\n\n\u003ca href=\"https://twitter.com/intent/follow?screen_name=MakadiaHarsh\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/MakadiaHarsh.svg?label=Follow%20@MakadiaHarsh\" alt=\"Follow @MakadiaHarsh\"\u003e\u003c/img\u003e\u003c/a\u003e\n\u003ca href=\"https://npmjs.com/package/tags-pro\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dt/tags-pro.svg\"\u003e\u003c/img\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/tags-pro.svg\"\u003e\u003c/img\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/tags-pro\" target=\"_blank\"\u003eFind out more on npmjs.com\u003c/a\u003e\n\n![Preview](https://github.com/Harshmakadia/reactjs-tag-component/blob/master/images/tags.gif)\n\nEasy steps to install and use the tags component in reactJS.\n\nFollow following to get started :\n\n1. npm install tags-pro\n\nupon successful installation let's include this in the main file\n\n```javascript\nimport Tags from 'tags-pro';\nimport React, { Component } from 'react';\nimport logo from './logo.svg';\nimport './App.css';\nimport Tags from './tags';\n\nclass App extends Component {\n  render() {\n    return (\n      \u003cdiv className=\"App\"\u003e\n        \u003cheader className=\"App-header\"\u003e\n          \u003cimg src={logo} className=\"App-logo\" alt=\"logo\" /\u003e\n          \u003ch1 className=\"App-title\"\u003eWelcome to React\u003c/h1\u003e\n        \u003c/header\u003e\n        \u003cp className=\"App-intro\"\u003e\n          To get started, edit \u003ccode\u003esrc/App.js\u003c/code\u003e and save to reload.\n        \u003c/p\u003e\n          \u003cTags\n              dataSource={[{name: 'Machester United', id: '1'},\n                  {name: 'PSG', id: '2'},\n                  {name: 'Barcelona', id: '3'},\n                  {name: 'Real Madrid', id: '4'},\n              ]}\n              isReadOnly = {true}\n              borderColor = \"#dcdcdc\"\n              borderColorHover = \"red\"\n              backgroundColor = \"orange\"\n              backgroundColorHover = \"pink\"\n              fontColor = \"blue\"\n              fontSize = \"14\"/\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n\nexport default App;\n```\n\nFollowing are the props that can be passed to \u003cTags/\u003e component to use it\n\n| Props Name        | values           | Description  |\n| ------------- |:-------------:| -----:|\n| dataSource      | [{name: 'Hello', id: '1'}] | Pass the array of object here with object containing name and id  |\n| isReadOnly      | Boolean Eg:(true/false)      |   This flag with enable deleting of tags when hovered on it if set to false |\n| borderColor | ColorName or ColorCode Eg:(blue/#dcdcdc)      |    Border color for tags\n| borderColorHover | ColorName or ColorCode Eg:(blue/#dcdcdc)      |    Border color for tags when hovered|\n| backgroundColor | ColorName or ColorCode Eg:(blue/#dcdcdc)      |    Background color for tags |\n| backgroundColorHover | ColorName or ColorCode Eg:(blue/#dcdcdc)       |    Background color for tags when hovered over it |\n| fontSize | Font size Eg:(14)     |    Pass the font size here as per required |\n| fontColor | color Eg:(blue/#dcdcdc)     |    Change the text color which is needed |\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshmakadia%2Freactjs-tag-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharshmakadia%2Freactjs-tag-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshmakadia%2Freactjs-tag-component/lists"}