{"id":18051915,"url":"https://github.com/shhdharmen/react-chip-input","last_synced_at":"2025-04-10T18:15:45.874Z","repository":{"id":38916091,"uuid":"174203080","full_name":"shhdharmen/react-chip-input","owner":"shhdharmen","description":"Chip input for react, based on react-bootstrap","archived":false,"fork":false,"pushed_at":"2024-03-22T15:11:02.000Z","size":6460,"stargazers_count":5,"open_issues_count":82,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-01T14:17:10.443Z","etag":null,"topics":["bootstrap","chip-input","react","react-bootstrap"],"latest_commit_sha":null,"homepage":null,"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/shhdharmen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["paypal.me/shhdharmen","https://www.buymeacoffee.com/shhdharmen"]}},"created_at":"2019-03-06T18:59:18.000Z","updated_at":"2024-05-15T16:25:42.219Z","dependencies_parsed_at":"2023-12-20T09:06:34.388Z","dependency_job_id":"ff7a4e58-9431-47ec-97fa-c43b1bee1459","html_url":"https://github.com/shhdharmen/react-chip-input","commit_stats":{"total_commits":47,"total_committers":8,"mean_commits":5.875,"dds":0.6595744680851063,"last_synced_commit":"039c6f736c2928b0675f6cf9a5b5b7adcc31df20"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shhdharmen%2Freact-chip-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shhdharmen%2Freact-chip-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shhdharmen%2Freact-chip-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shhdharmen%2Freact-chip-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shhdharmen","download_url":"https://codeload.github.com/shhdharmen/react-chip-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248269657,"owners_count":21075783,"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":["bootstrap","chip-input","react","react-bootstrap"],"created_at":"2024-10-30T22:57:45.138Z","updated_at":"2025-04-10T18:15:45.855Z","avatar_url":"https://github.com/shhdharmen.png","language":"TypeScript","funding_links":["paypal.me/shhdharmen","https://www.buymeacoffee.com/shhdharmen"],"categories":[],"sub_categories":[],"readme":"# react-chip-input\n\n\u003e Chip input for react, based on react-bootstrap\n\n[![NPM](https://img.shields.io/npm/v/react-chip-input.svg)](https://www.npmjs.com/package/react-chip-input)\n[![Deployed on Github Pages](https://img.shields.io/badge/github--pages-online-blue.svg)](https://shhdharmen.github.io/react-chip-input/ \"Deployed on Github Pages\")\n\n![GIF Example](./chrome-capture.gif)\n\n## Pre-requisitions\n\nIt is assumed that you have [react-bootstrap](https://react-bootstrap.github.io/getting-started/introduction#installation) installed.\n\n## Install\n\n```bash\nnpm i react-chip-input\n# or\nyarn add react-chip-input\n```\n\n## Usage\n\n```tsx\nimport * as React from \"react\";\n\nimport ReactChipInput from \"react-chip-input\";\n\nclass Example extends React.Component {\n  state = {\n    chips: []\n  };\n  addChip = value =\u003e {\n    const chips = this.state.chips.slice();\n    chips.push(value);\n    this.setState({ chips });\n  };\n  removeChip = index =\u003e {\n    const chips = this.state.chips.slice();\n    chips.splice(index, 1);\n    this.setState({ chips });\n  };\n  render() {\n    return (\n      \u003cReactChipInput\n        classes=\"class1 class2\"\n        chips={this.state.chips}\n        onSubmit={value =\u003e this.addChip(value)}\n        onRemove={index =\u003e this.removeChip(index)}\n      /\u003e\n    );\n  }\n}\n```\n\n## Style Variables\n\n```css\n/* Chip background color, fallbacks to #eaeaea */\n--react-chip-input__chip-bg-color\n/* Chip border color, fallbacks to bootstrap's var --gray to rgba(0, 0, 0, 0.25) */\n--react-chip-input__chip-border-color\n/* Chip :hover, :active, :focus background color, fallbacks to #dedede */\n--react-chip-input__chip-hover-bg-color\n/* Chip :hover, :active, :focus border color, fallbacks bootstrap's var --dark to rgba(0, 0, 0, 0.05) */\n--react-chip-input__chip-hover-border-color\n/* Box shadow color, when active, fallbacks to bootstrap's var --primary to blue */\n--react-chip-input__box-shadow-color\n```\n\n## License\n\nMIT © [shhdharmen](https://github.com/shhdharmen)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshhdharmen%2Freact-chip-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshhdharmen%2Freact-chip-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshhdharmen%2Freact-chip-input/lists"}