{"id":13515416,"url":"https://github.com/vinayakkulkarni/v-rating","last_synced_at":"2025-04-12T12:32:00.755Z","repository":{"id":27083706,"uuid":"112397223","full_name":"vinayakkulkarni/v-rating","owner":"vinayakkulkarni","description":":star: Rating component in Semantic-UI made with VueJS (\u003c 1kB, blazing fast)","archived":false,"fork":false,"pushed_at":"2024-03-24T20:41:31.000Z","size":2858,"stargazers_count":49,"open_issues_count":19,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T07:11:33.220Z","etag":null,"topics":["v-rating","vue","vue-components","vue-rating","vue-semantic-ui-rating","vue2","vuejs","vuejs-components","vuejs2"],"latest_commit_sha":null,"homepage":"https://bit.ly/v-rating","language":"JavaScript","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/vinayakkulkarni.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2017-11-28T22:36:32.000Z","updated_at":"2023-03-22T19:18:19.000Z","dependencies_parsed_at":"2024-04-12T23:00:52.165Z","dependency_job_id":null,"html_url":"https://github.com/vinayakkulkarni/v-rating","commit_stats":{"total_commits":455,"total_committers":6,"mean_commits":75.83333333333333,"dds":"0.27912087912087913","last_synced_commit":"c8563a754d8dbe213547957b579d596bca11fa4b"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinayakkulkarni%2Fv-rating","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinayakkulkarni%2Fv-rating/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinayakkulkarni%2Fv-rating/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinayakkulkarni%2Fv-rating/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinayakkulkarni","download_url":"https://codeload.github.com/vinayakkulkarni/v-rating/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248020593,"owners_count":21034459,"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":["v-rating","vue","vue-components","vue-rating","vue-semantic-ui-rating","vue2","vuejs","vuejs-components","vuejs2"],"created_at":"2024-08-01T05:01:11.014Z","updated_at":"2025-04-12T12:32:00.194Z","avatar_url":"https://github.com/vinayakkulkarni.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","UI组件","Components \u0026 Libraries","UI Components","UI Components [🔝](#readme)"],"sub_categories":["杂","UI Components","Miscellaneous"],"readme":"# V-Rating :zap: [![Build Status](https://travis-ci.org/vinayakkulkarni/v-rating.svg?branch=master)](https://travis-ci.org/vinayakkulkarni/v-rating) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fvinayakkulkarni%2Fv-rating.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fvinayakkulkarni%2Fv-rating?ref=badge_shield)\n\u003ca href=\"https://github.com/vinayakkulkarni/v-rating/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/github/release/vinayakkulkarni/v-rating.svg\" alt=\"github release\"\u003e\u003c/a\u003e \u003ca href=\"http://npmjs.org/package/v-rating\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/v-rating.svg\" alt=\"npm version\"\u003e\u003c/a\u003e \u003ca href=\"http://npm-stat.com/charts.html?package=v-rating\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/v-rating.svg\" alt=\"npm downloads\"\u003e\u003c/a\u003e\n\n+ Simple `ui rating` component for Vue made with Semantic-UI.\n\n+ This is [on GitHub](https://github.com/vinayakkulkarni/v-rating)  so let me know if I've b0rked it somewhere, give me a star :star: if you like it :beers:\n\n+ Demo here -\u003e [💯 Codesandbox Link](http://bit.ly/v-rating)\n## Requirements\n\n* [Vue.js](https://vuejs.org/) 2.x\n* [Semantic-UI](https://semantic-ui.com/) 2.x\n\n## :white_check_mark: Install :ok_hand:\n\n```bash\nnpm install v-rating\n// or\nyarn add v-rating\n```\n\nCDN: [UNPKG](https://unpkg.com/v-rating/dist/) | [jsDelivr](https://cdn.jsdelivr.net/npm/v-rating/dist/) (available as `window.VRating`)\n\n## :white_check_mark: Usage :mortar_board:\n\nRegister the component globally:\n```javascript\nVue.component('Rating', require('v-rating'));\n```\nOr use locally\n```javascript\nimport Rating from 'v-rating';\n```\n\n## :white_check_mark: Example 1 :four_leaf_clover:\n\n```html\n\u003crating v-model=\"yourLocalVariable\" class=\"huge heart\"\u003e\u003c/rating\u003e\n```\n\n```javascript\nVue.component('example-component', {\n\tdata() {\n\t\treturn {\n\t\t\tyourLocalVariable: 0,\n\t\t};\n\t}\n});\n```\n\n### :white_check_mark: :book: Props\n\n| Name | Type | Required? | Default | Description |\n| --- | --- | --- | --- | --- |\n| `type` | String | No | `star` | The type of rating component will it be? SUI has `stars` \u0026`heart`. |\n| `clearable` | Boolean | No | `true` | Whether the rating is clearable or not. [Read the SUI Docs on this](https://semantic-ui.com/modules/rating.html#/settings) |\n| `max` | String | No | `5` | A number representing the maximum ratings that can be made available. |\n| `initial` | String | No | `0` | A number representing the default rating to apply. |\n\n## NPM :octocat:  \n\n[![NPM](https://nodei.co/npm/v-rating.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/v-rating/)\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fvinayakkulkarni%2Fv-rating.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fvinayakkulkarni%2Fv-rating?ref=badge_large)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinayakkulkarni%2Fv-rating","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinayakkulkarni%2Fv-rating","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinayakkulkarni%2Fv-rating/lists"}