{"id":22170242,"url":"https://github.com/hebilicious/vue-switch-match","last_synced_at":"2025-07-26T14:30:34.283Z","repository":{"id":264169261,"uuid":"892521220","full_name":"Hebilicious/vue-switch-match","owner":"Hebilicious","description":"Switch Match components for Vue and Nuxt.","archived":false,"fork":false,"pushed_at":"2024-11-29T13:42:12.000Z","size":157,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-29T14:39:26.192Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Hebilicious.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["Hebilicious"]}},"created_at":"2024-11-22T09:16:54.000Z","updated_at":"2024-11-22T18:06:52.000Z","dependencies_parsed_at":"2024-11-22T12:26:55.722Z","dependency_job_id":"9d760e2c-e7f1-4c06-b5f6-683ed178ffbc","html_url":"https://github.com/Hebilicious/vue-switch-match","commit_stats":null,"previous_names":["hebilicious/vue-switch-match"],"tags_count":0,"template":false,"template_full_name":"Hebilicious/nuxt-module-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hebilicious%2Fvue-switch-match","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hebilicious%2Fvue-switch-match/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hebilicious%2Fvue-switch-match/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hebilicious%2Fvue-switch-match/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hebilicious","download_url":"https://codeload.github.com/Hebilicious/vue-switch-match/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227685880,"owners_count":17804134,"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":[],"created_at":"2024-12-02T06:40:05.928Z","updated_at":"2024-12-02T06:40:06.756Z","avatar_url":"https://github.com/Hebilicious.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Hebilicious"],"categories":[],"sub_categories":[],"readme":"# Vue Switch Match\n\n[![CI](https://github.com/Hebilicious/vue-switch-match/actions/workflows/ci.yaml/badge.svg)](https://github.com/Hebilicious/vue-switch-match/actions/workflows/ci.yaml)\n[![npm version](https://badge.fury.io/js/@hebilicious%2Fnuxt-switch-match.svg)](https://badge.fury.io/js/@hebilicious%2Fnuxt-switch-match)\n[![npm version](https://badge.fury.io/js/@hebilicious%2Fvue-switch-match.svg)](https://badge.fury.io/js/@hebilicious%2Fvue-switch-match)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n🚀 Pattern Matching Switch Match Component for Vue and Nuxt. Inspired by Solid.js\n\n## 📦 Installation\n\nRefer to the [Vue](./packages/vue-switch-match/README.md) or [Nuxt](./packages/nuxt-switch-match/README.md) README for installation instructions.\n\n## 🚀 Usage\n\n```vue\n\u003cscript lang=\"ts\" setup\u003e\nconst state = ref(0)\nconst swap = () =\u003e {\n\tconst newValue = state.value === 0 ? 1 : 0\n\tstate.value = newValue\n}\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cbutton @click=\"swap\"\u003eClick Me !\u003c/button\u003e\n  \u003cbutton @click=\"(state = 2)\"\u003eFallback\u003c/button\u003e\n  \u003cSwitch\u003e\n    \u003cMatch :when=\"state === 0\"\u003eHello\u003c/Match\u003e\n    \u003cMatch :when=\"state === 1\"\u003eWorld\u003c/Match\u003e\n    \u003cFallback\u003eBye\u003c/Fallback\u003e\n  \u003c/Switch\u003e\n\u003c/template\u003e\n```\n\n## 📦 Contributing\n\nContributions, issues and feature requests are welcome!\n\n1. Fork this repo\n\n2. [Install `bun`.](https://bun.sh/docs/installation)\n\n3. Intall pnpm `corepack enable \u0026\u0026 pnpm corepack use pnpm@latest`\n\n4. Use `pnpm i` at the mono-repo root.\n\n5. Make modifications and follow conventional commits.\n\n6. Open a PR 🚀🚀🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhebilicious%2Fvue-switch-match","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhebilicious%2Fvue-switch-match","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhebilicious%2Fvue-switch-match/lists"}