{"id":19423255,"url":"https://github.com/atomjoy/vue-fontawesome","last_synced_at":"2025-07-05T17:36:40.385Z","repository":{"id":229999832,"uuid":"778193109","full_name":"atomjoy/vue-fontawesome","owner":"atomjoy","description":"How to install free icons from Fontawesome in Vue3.","archived":false,"fork":false,"pushed_at":"2024-03-27T09:39:39.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T10:01:34.595Z","etag":null,"topics":["fontawesome-vue","vue-fontawesome","vue-icons","vue3-fontawesome","vue3-icons"],"latest_commit_sha":null,"homepage":"https://github.com/atomjoy/vue-fontawesome","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/atomjoy.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-27T09:01:11.000Z","updated_at":"2024-03-27T09:41:12.000Z","dependencies_parsed_at":"2024-03-27T10:27:18.941Z","dependency_job_id":"dff05c7f-3899-4683-8ff3-6de154697860","html_url":"https://github.com/atomjoy/vue-fontawesome","commit_stats":null,"previous_names":["atomjoy/vue-fontawesome","atomjoy/vue-utils"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fvue-fontawesome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fvue-fontawesome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fvue-fontawesome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fvue-fontawesome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atomjoy","download_url":"https://codeload.github.com/atomjoy/vue-fontawesome/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240603096,"owners_count":19827640,"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":["fontawesome-vue","vue-fontawesome","vue-icons","vue3-fontawesome","vue3-icons"],"created_at":"2024-11-10T13:37:37.660Z","updated_at":"2025-02-25T04:29:21.112Z","avatar_url":"https://github.com/atomjoy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue3 Fontawesome Icons\nHow to install free icons from fontawesome in vue3.\n\n## Vue 3\n\n```sh\nnpm install vue@latest\nnpm install vue-router@4\nnpm install vue-i18n@9\nnpm install pinia\nnpm install --save-dev @vitejs/plugin-vue\nnpm install @googlemaps/js-api-loader\n```\n\n## Fontawesome\n\n### Install\n```sh\nnpm i --save @fortawesome/vue-fontawesome@latest-3\nnpm i --save @fortawesome/fontawesome-svg-core\nnpm i --save @fortawesome/free-solid-svg-icons\nnpm i --save @fortawesome/free-regular-svg-icons\nnpm i --save @fortawesome/free-brands-svg-icons\n```\n\n### Add in app.js\n\n```js\nimport './bootstrap';\nimport { createApp } from 'vue'\nimport App from './App.vue'\nimport './assets/main.css'\nimport FontAwesomeIcon from \"./utils/fontawesome\";\n\nconst app = createApp(App)\napp.component(\"FontAwesomeIcon\", FontAwesomeIcon)\napp.mount('#app')\n```\n\n### Add icon\n\n```vue\n// import { FontAwesomeIcon } from \"@fortawesome/vue-fontawesome\";\n\n\u003cscript\u003e\nfunction scrollToTop() {\n    window.scrollTo({top: 0, behavior: 'smooth'});\n    // window.scrollIntoView({ behavior: 'smooth' })    \n    // window.scrollTo(0,0);\n}\n\u003c/script\u003e\n\u003ctemplate\u003e    \n    \u003ca href=\"#\" @click=\"scrollToTop\"\u003e\u003cdiv class=\"scrolltop\"\u003e\n        \u003cfont-awesome-icon :icon=\"['fas', 'chevron-up']\" /\u003e\n    \u003c/div\u003e\u003c/a\u003e\n\u003c/template\u003e\n\u003cstyle\u003e\nhtml {\n    scroll-behavior: smooth;\n}\n\n.scrolltop {\n    color: #fff;\n    background: #0099ff;\n    position: fixed;\n    bottom: 10px;\n    right: 10px;\n    padding: 15px;    \n}\n\u003c/style\u003e\n```\n\n### More icons\n\n```vue\n\u003ci class=\"fa-solid fa-user\"\u003e\u003c/i\u003e\n\u003ci class=\"fa-brands fa-twitter\"\u003e\u003c/i\u003e\n\u003ci class=\"fa-brands fa-youtube\"\u003e\u003c/i\u003e\n\u003ci class=\"fa-brands fa-x-twitter\"\u003e\u003c/i\u003e\n\u003ci class=\"fa-brands fa-instagram\"\u003e\u003c/i\u003e\n\u003ci class=\"fa-brands fa-facebook-f\"\u003e\u003c/i\u003e\n\u003ci class=\"fa-solid fa-question-circle\"\u003e\u003c/i\u003e\n\u003cfont-awesome-icon icon=\"fa-solid fa-house\" /\u003e\n\u003cfont-awesome-icon :icon=\"['fab', 'x-twitter']\" /\u003e\n\u003cfont-awesome-icon :icon=\"['fas', 'chevron-up']\" /\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomjoy%2Fvue-fontawesome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatomjoy%2Fvue-fontawesome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomjoy%2Fvue-fontawesome/lists"}