{"id":20373098,"url":"https://github.com/gluons/vue-radio-toggle-buttons","last_synced_at":"2025-04-12T06:43:51.071Z","repository":{"id":57151907,"uuid":"172759059","full_name":"gluons/vue-radio-toggle-buttons","owner":"gluons","description":"🔘 Radio toggle buttons for Vue.","archived":false,"fork":false,"pushed_at":"2020-01-05T13:14:41.000Z","size":697,"stargazers_count":2,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T06:43:45.012Z","etag":null,"topics":["radio-buttons","toggle","toggle-buttons","toggle-switches","vue","vue-component","vuejs"],"latest_commit_sha":null,"homepage":"https://git.io/vue-radio-toggle-buttons","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gluons.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-26T17:36:54.000Z","updated_at":"2023-02-06T22:18:50.000Z","dependencies_parsed_at":"2022-09-06T17:31:23.586Z","dependency_job_id":null,"html_url":"https://github.com/gluons/vue-radio-toggle-buttons","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluons%2Fvue-radio-toggle-buttons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluons%2Fvue-radio-toggle-buttons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluons%2Fvue-radio-toggle-buttons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluons%2Fvue-radio-toggle-buttons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gluons","download_url":"https://codeload.github.com/gluons/vue-radio-toggle-buttons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530607,"owners_count":21119592,"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":["radio-buttons","toggle","toggle-buttons","toggle-switches","vue","vue-component","vuejs"],"created_at":"2024-11-15T01:16:31.504Z","updated_at":"2025-04-12T06:43:51.047Z","avatar_url":"https://github.com/gluons.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue Radio Toggle Buttons\n[![GitHub](https://img.shields.io/github/license/gluons/vue-radio-toggle-buttons.svg?style=flat-square)](./LICENSE)\n[![vue 2](https://img.shields.io/badge/vue-2-42b983.svg?style=flat-square)](https://vuejs.org)\n[![npm](https://img.shields.io/npm/v/vue-radio-toggle-buttons.svg?style=flat-square)](https://www.npmjs.com/package/vue-radio-toggle-buttons)\n[![npm](https://img.shields.io/npm/dt/vue-radio-toggle-buttons.svg?style=flat-square)](https://www.npmjs.com/package/vue-radio-toggle-buttons)\n![npm type definitions](https://img.shields.io/npm/types/vue-radio-toggle-buttons.svg?style=flat-square)\n[![Travis (.com)](https://img.shields.io/travis/com/gluons/vue-radio-toggle-buttons.svg?style=flat-square)](https://travis-ci.com/gluons/vue-radio-toggle-buttons)\n\n🔘 Radio toggle buttons for Vue.\n\n## ⚙️ Installation\n\n```bash\nnpm install vue-radio-toggle-buttons\n# or\nyarn add vue-radio-toggle-buttons\n```\n\n## 🛂 Usage\n\n**main.js:**\n```js\nimport Vue from 'vue';\nimport VueRadioToggleButtons from 'vue-radio-toggle-buttons';\n\nimport App from './App.vue';\n\nimport 'vue-radio-toggle-buttons/dist/vue-radio-toggle-buttons.css';\n\nVue.use(VueRadioToggleButtons, {\n\tcolor: '#333',\n\ttextColor: '#333',\n\tselectedTextColor: '#eee'\n});\n\nnew Vue({\n\tel: '#app',\n\trender: h =\u003e h(App)\n});\n```\n\n**App.vue:**\n```vue\n\u003ctemplate\u003e\n\t\u003cRadioToggleButtons\n\t\tv-model='currentValue'\n\t\t:values='values'\n\t\tcolor='purple'\n\t\ttextColor='#000'\n\t\tselectedTextColor='#fff'\n\t/\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nexport default {\n\tname: 'App',\n\tdata() {\n\t\treturn {\n\t\t\tvalues: [\n\t\t\t\t{ label: 'Value 1', value: '1' },\n\t\t\t\t{ label: 'Value 2', value: '2', disabled: true },\n\t\t\t\t{ label: 'Value 3', value: '3' },\n\t\t\t],\n\t\t\tcurrentValue: ''\n\t\t}\n\t}\n};\n\u003c/script\u003e\n```\n\n## ⚙️ Plugin options\n\n### `color`\n**Type:** `string`\n\nGlobal primary color of radio toggle buttons.\n\n### `textColor`\n**Type:** `string`\n\nGlobal text color of radio toggle buttons.\n\n### `selectedTextColor`\n**Type:** `string`\n\nGlobal text color of selected item of radio toggle buttons.\n\n## 📚 API\n\n### `\u003cRadioToggleButtons\u003e`\n\n#### Props\n\n##### `values`\n**Type:** `Array\u003c{ label: string, value: string, disabled: boolean }\u003e`  \n**Required:** `true`\n\nValues of radio toggle buttons.\n\n\u003e You can set `disabled` to `true` to disable that button.\n\n##### `color`\n**Type:** `string`  \n**Default:** `'#333'`\n\nPrimary color of radio toggle buttons.\n\n##### `textColor`\n**Type:** `string`  \n**Default:** `'#333'`\n\nText color of radio toggle buttons.\n\n##### `selectedTextColor`\n**Type:** `string`  \n**Default:** `'#eee'`\n\nText color of selected item of radio toggle buttons.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgluons%2Fvue-radio-toggle-buttons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgluons%2Fvue-radio-toggle-buttons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgluons%2Fvue-radio-toggle-buttons/lists"}