{"id":16441805,"url":"https://github.com/ubaldop/vue-ribbon","last_synced_at":"2025-08-18T08:08:37.401Z","repository":{"id":65412455,"uuid":"169436582","full_name":"ubaldop/vue-ribbon","owner":"ubaldop","description":"Vue component for GitHub ribbons","archived":false,"fork":false,"pushed_at":"2019-02-12T14:10:38.000Z","size":38,"stargazers_count":18,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T18:47:11.039Z","etag":null,"topics":["github","ribbon","vue","vue-components","vuejs","vuejs-components"],"latest_commit_sha":null,"homepage":"http://flatmap.it/vue-ribbon","language":"Vue","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/ubaldop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-06T16:23:23.000Z","updated_at":"2024-09-23T11:34:08.000Z","dependencies_parsed_at":"2023-01-22T08:05:38.501Z","dependency_job_id":null,"html_url":"https://github.com/ubaldop/vue-ribbon","commit_stats":null,"previous_names":["p3trur0/vue-ribbon"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ubaldop/vue-ribbon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldop%2Fvue-ribbon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldop%2Fvue-ribbon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldop%2Fvue-ribbon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldop%2Fvue-ribbon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubaldop","download_url":"https://codeload.github.com/ubaldop/vue-ribbon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldop%2Fvue-ribbon/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269817678,"owners_count":24480042,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["github","ribbon","vue","vue-components","vuejs","vuejs-components"],"created_at":"2024-10-11T09:15:27.240Z","updated_at":"2025-08-18T08:08:37.359Z","avatar_url":"https://github.com/ubaldop.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/P3trur0/vue-ribbon/blob/master/assets/logo.png?raw=true\" alt=\"vue-ribbon\"/\u003e\n  \u003cbr/\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vue-ribbon\"\u003e\u003cimg src=\"https://img.shields.io/badge/npm-1.0.1-blue.svg\" alt=\"Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vue-ribbon\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-green.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n_Did you develop a Vue application hosted on GitHub? Add this Vue component for embedding a GitHub fork ribbon on it!_\n\n---\n\nvue-ribbon is a Vue Single File Component implementing [GitHub ribbons](https://github.blog/2008-12-19-github-ribbons/). It comes with a set of properties making the component customizable for your needs.\n\n### Properties\n\nIf you need to customize the ribbon look and feel, you can use the following optional properties.\n\n\n| Name     | Description                                                                                     | Type      | Default                         |\n| -------- | ----------------------------------------------------------------------------------------------- | --------- | ------------------------------- |\n| text     | The text to display on the ribbon                                                               | `String`  | _vue-ribbon: check it out!_     |\n| url      | The URL linked                                                                                  | `String`  | _https://flatmap.it/vue-ribbon_ |\n| position | The position of the ribbon. It can be `right-top`,  `right-bottom`,  `left-top`,  `left-bottom` | `String`  | _right-top_                     |\n| fixed    | If defined, it makes the ribbon fixed                                                           | `Boolean` | _false_                         |\n| color    | Defines the background color of the ribbon                                                      | `String`  | _#364a5e_                       |\n\nThe color of the text is automatically detected by the component: for background color with a luma greater than 128 the text is white, otherwise black.\nSee how it looks on this [demo](https://flatmap.it/vue-ribbon)!\n\n### Installation\nYou can install vue-ribbon using npm:\n\n```bash\nnpm install --save vue-ribbon\n```\n\nAlternatively, you can import `vue-ribbon` via `\u003cscript\u003e` tag in the browser directly, avoiding the NPM installation:\n\n```html\n\u003cscript src=\"https://unpkg.com/vue\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/vue-ribbon\"\u003e\u003c/script\u003e\n```\n\n### Usage\nOnce installed, it is easy to use it.  \n\n#### Importing the component\nFirst, you need to import `vue-ribbon` in your files. You can do that in different ways. For example, it can be imported into a build process for use in full-fledged Vue applications:\n\n```js\nimport Ribbon from 'vue-ribbon';\n\nexport default {\n  components: {\n    Ribbon,\n  },\n  // rest of the component\n}\n```\n\n#### Using the component\nOnce imported, you can use your component as follows:\n\n```js\n\u003cRibbon/\u003e\n```\n\n### Credits\nThe inspiration for this component comes from [github-fork-ribbon-css](https://github.com/simonwhitaker/github-fork-ribbon-css).\n\n### Contributing\nThis component can be improved both in features and performances. Please, help in doing it better!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubaldop%2Fvue-ribbon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubaldop%2Fvue-ribbon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubaldop%2Fvue-ribbon/lists"}