{"id":13559421,"url":"https://github.com/adamlacombe/fa-icon","last_synced_at":"2025-08-16T21:32:22.008Z","repository":{"id":57094558,"uuid":"284466225","full_name":"adamlacombe/fa-icon","owner":"adamlacombe","description":"Unofficial web component for Font Awesome 5","archived":false,"fork":false,"pushed_at":"2020-08-03T13:07:59.000Z","size":38,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-15T23:05:43.100Z","etag":null,"topics":["custom-element","font-awesome","fontawesome","icon","stenciljs","svg","typescript","web-component","webcomponent"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@adamlacombe/fa-icon","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/adamlacombe.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"adamlacombe","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-08-02T13:23:52.000Z","updated_at":"2024-08-21T02:18:34.000Z","dependencies_parsed_at":"2022-08-22T19:40:17.546Z","dependency_job_id":null,"html_url":"https://github.com/adamlacombe/fa-icon","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/adamlacombe%2Ffa-icon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlacombe%2Ffa-icon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlacombe%2Ffa-icon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlacombe%2Ffa-icon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamlacombe","download_url":"https://codeload.github.com/adamlacombe/fa-icon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229893974,"owners_count":18140617,"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":["custom-element","font-awesome","fontawesome","icon","stenciljs","svg","typescript","web-component","webcomponent"],"created_at":"2024-08-01T13:00:21.534Z","updated_at":"2024-12-17T04:10:56.429Z","avatar_url":"https://github.com/adamlacombe.png","language":"TypeScript","funding_links":["https://github.com/sponsors/adamlacombe"],"categories":["Ecosystem Highlights"],"sub_categories":["Utilities \u0026 Integrations"],"readme":"![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D\u0026colorA=16161d\u0026style=flat-square)\n\n# @adamlacombe/fa-icon\n\nA web component for [Font Awesome 5](https://fontawesome.com/icons?d=gallery\u0026m=free)\n\n[See it in action on codepen.io](https://codepen.io/adamlacombe/pen/abderMg)\n\n## Examples\n\n### TSX\n```tsx\nimport { Component, h, Host } from '@stencil/core';\nimport '@adamlacombe/fa-icon';\n\n@Component({\n  tag: 'my-component'\n})\nexport class MyComponent {\n\n  render() {\n    return \u003cHost\u003e\n      \u003cfa-icon type={'far'} name={'surprise'} size={'medium'} /\u003e\n    \u003c/Host\u003e;\n  }\n}\n\n```\n\n### HTML\n```html\n\u003cscript src='https://unpkg.com/@adamlacombe/fa-icon@latest/dist/fa-icon.js'\u003e\u003c/script\u003e\n\n\u003cfa-icon type=\"far\" name=\"surprise\" size=\"medium\"\u003e\u003c/fa-icon\u003e\n```\n\n## Properties\n\n| Attribute  | Description  | Type  |\n|---|---|---|\n| `type`  |  The icon prefix. | `\"fab\"` \\| `\"far\"` \\| `\"fas\"`  |\n| `name`  |  The name of the icon. |  `string`  |\n| `size`  |  The size of the icon. | `\"large\"` \\| `\"medium\"` \\| `\"small\"` \\| `\"x-large\"` \\| `\"x-small\"` \\| `\"xx-large\"`  |\n| `color`  | The color of the icon. This can be a css color name, hex value or custom property.   |  `string`\u003cbr\u003e**Examples:** \u003cbr\u003e`--primary-color` \\| `blue` \\| `#c412ef` \\| `primary-color` |\n\n\n## Using this component\n\n### Script tag\n- Put a script tag similar to this `\u003cscript src=\"https://unpkg.com/@adamlacombe/fa-icon@latest/dist/fa-icon.js\"\u003e\u003c/script\u003e` in the head of your index.html\n- Then you can use the element anywhere in your template, JSX, html etc\n\n### In a stencil project\n- Run `npm install @adamlacombe/fa-icon --save`\n- Add an import to the npm package `import '@adamlacombe/fa-icon';`\n- Then you can use the element anywhere in your stencil project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamlacombe%2Ffa-icon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamlacombe%2Ffa-icon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamlacombe%2Ffa-icon/lists"}