{"id":20482499,"url":"https://github.com/anypoint-web-components/anypoint-chip","last_synced_at":"2026-04-20T02:04:23.179Z","repository":{"id":35095471,"uuid":"206182651","full_name":"anypoint-web-components/anypoint-chip","owner":"anypoint-web-components","description":"⛔️ DEPRECATED This component is being deprecated. Use the `awc` module instead.","archived":false,"fork":false,"pushed_at":"2023-01-07T09:20:55.000Z","size":958,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"stage","last_synced_at":"2025-02-16T03:34:34.370Z","etag":null,"topics":["deprecated","obsolete"],"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/anypoint-web-components.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-03T22:26:33.000Z","updated_at":"2021-10-16T00:02:41.000Z","dependencies_parsed_at":"2023-01-15T13:45:20.595Z","dependency_job_id":null,"html_url":"https://github.com/anypoint-web-components/anypoint-chip","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/anypoint-web-components%2Fanypoint-chip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anypoint-web-components%2Fanypoint-chip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anypoint-web-components%2Fanypoint-chip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anypoint-web-components%2Fanypoint-chip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anypoint-web-components","download_url":"https://codeload.github.com/anypoint-web-components/anypoint-chip/tar.gz/refs/heads/stage","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242058088,"owners_count":20065062,"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":["deprecated","obsolete"],"created_at":"2024-11-15T16:13:19.044Z","updated_at":"2026-04-20T02:04:23.132Z","avatar_url":"https://github.com/anypoint-web-components.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deprecated\n\nThis component has been moved to `anypoint-web-components/awc`.\n\n-----\n\nA compact material design element that represent and input, attribute, or action.\n\n## Example\n\n```html\n\u003cstyle\u003e\n.avatar {\n  background-color: red;\n  color: #fff !important;\n  width: 24px;\n  height: 24px;\n}\n\u003c/style\u003e\n\u003ch2\u003eBasics\u003c/h2\u003e\n\u003csection\u003e\n  \u003canypoint-chip\u003eSimple chip\u003c/anypoint-chip\u003e\n\n  \u003canypoint-chip\u003e\n    \u003cspan class=\"avatar\" slot=\"icon\"\u003eC\u003c/span\u003e\n    \u003cspan\u003eChip with icon\u003c/span\u003e\n  \u003c/anypoint-chip\u003e\n\n  \u003canypoint-chip removable\u003e\n    \u003cspan class=\"avatar\" slot=\"icon\"\u003eR\u003c/span\u003e\n    Chip that can be removed\n  \u003c/anypoint-chip\u003e\n\n  \u003canypoint-chip removable disabled\u003e\n    \u003cspan class=\"avatar\" slot=\"icon\"\u003eD\u003c/span\u003e\n    Disabled chip\n  \u003c/anypoint-chip\u003e\n\u003c/section\u003e\n\n\u003ch2\u003eInput chips\u003c/h2\u003e\n\u003csection\u003e\n  \u003canypoint-chip removable\u003e\n    \u003ciron-icon icon=\"communication:location-on\" slot=\"icon\"\u003e\u003c/iron-icon\u003e\n    Portland\n  \u003c/anypoint-chip\u003e\n\n  \u003canypoint-chip removable\u003e\n    \u003ciron-icon icon=\"maps:directions-bike\" slot=\"icon\"\u003e\u003c/iron-icon\u003e\n    Biking\n  \u003c/anypoint-chip\u003e\n\u003c/section\u003e\n```\n\n## Usage\n\n### Installation\n\n```sh\nnpm install --save @anypoint-web-components/anypoint-chip\n```\n\n### In an html file\n\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cscript type=\"module\"\u003e\n      import './node_modules/@anypoint-web-components/anypoint-chip/anypoint-chip.js';\n    \u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003canypoint-chip\u003e\u003c/anypoint-chip\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n### In a LitElement\n\n```js\nimport { LitElement, html } from 'lit-element';\nimport '@anypoint-web-components/anypoint-chip/anypoint-chip.js';\n\nclass SampleElement extends PolymerElement {\n  render() {\n    return html`\n    \u003canypoint-chip\u003e\u003c/anypoint-chip\u003e\n    `;\n  }\n}\ncustomElements.define('sample-element', SampleElement);\n```\n\n## Development\n\n```sh\ngit clone https://github.com/anypoint-web-components/anypoint-chip\ncd anypoint-chip\nnpm install\n```\n\n### Running the demo locally\n\n```sh\nnpm start\n```\n\n### Running the tests\n\n```sh\nnpm test\n```\n\n## Styling\n\n`\u003canypoint-chip\u003e` provides the following custom properties for styling:\n\nCustom property | Description | Default\n----------------|-------------|----------\n`--anypoint-chip-background-color` | Chip background color | `rgba(35, 47, 52, 0.12)`\n`--anypoint-chip-focused-background-color` | Background color when focused | `#D6D6D6`\n`--anypoint-chip-active-background-color` | Background color when toggle is active | `#cdcdcd`\n`--anypoint-chip-icon-color` | Color of the icon | `#666666`\n`--anypoint-chip-label-color` | Color of the label | `#232F34`\n`--anypoint-chip-label-focused-color` | Color of the when focused | ``\n`--anypoint-chip-label-active-color` | Color of the when active | ``\n`--anypoint-chip-icon-close-color` | Color of the close icon | `#dfdfdf`\n`--anypoint-chip-icon-close-background-color` | Background color of the close icon | `#666666`\n\n`\u003canypoint-chip\u003e` provides the following [parts](https://www.w3.org/TR/css-shadow-parts-1/):\n\nPart name | Description\n----------------|-------------\n`anypoint-chip-container` | Styles applied to the chip container\n`anypoint-chip-icon` | Styles applied to the icon container\n`anypoint-chip-label` | Styles applied to the label container\n`anypoint-chip-remove` | Styles applied to the delete icon\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanypoint-web-components%2Fanypoint-chip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanypoint-web-components%2Fanypoint-chip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanypoint-web-components%2Fanypoint-chip/lists"}