{"id":15412569,"url":"https://github.com/elmassimo/vue-custom-element-example","last_synced_at":"2025-04-18T21:50:32.177Z","repository":{"id":45572471,"uuid":"394702637","full_name":"ElMassimo/vue-custom-element-example","owner":"ElMassimo","description":"An example on how to define custom elements using Vue 3","archived":false,"fork":false,"pushed_at":"2022-09-13T21:07:38.000Z","size":163,"stargazers_count":64,"open_issues_count":1,"forks_count":12,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-14T08:51:37.114Z","etag":null,"topics":["custom-elements","demo","tutorial","vue","vuejs3","web-components","web-components-library"],"latest_commit_sha":null,"homepage":"https://maximomussini.com/posts/vue-custom-elements/","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/ElMassimo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-10T15:35:20.000Z","updated_at":"2025-03-18T22:52:03.000Z","dependencies_parsed_at":"2022-08-04T16:00:20.514Z","dependency_job_id":null,"html_url":"https://github.com/ElMassimo/vue-custom-element-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElMassimo%2Fvue-custom-element-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElMassimo%2Fvue-custom-element-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElMassimo%2Fvue-custom-element-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElMassimo%2Fvue-custom-element-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElMassimo","download_url":"https://codeload.github.com/ElMassimo/vue-custom-element-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249553428,"owners_count":21290222,"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":["custom-elements","demo","tutorial","vue","vuejs3","web-components","web-components-library"],"created_at":"2024-10-01T16:53:44.632Z","updated_at":"2025-04-18T21:50:32.128Z","avatar_url":"https://github.com/ElMassimo.png","language":"TypeScript","readme":"[defineCustomElement]: https://v3.vuejs.org/guide/web-components.html#definecustomelement\n[custom elements]: https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements\n[demo]: https://vue-custom-element-example.netlify.app\n[how to export]: https://github.com/ElMassimo/vue-custom-element-example/tree/main/package\n[how to use them]: https://github.com/ElMassimo/vue-custom-element-example/tree/main/playground\n[blog]: https://maximomussini.com/posts/vue-custom-elements/\n\n\u003ch1 align='center'\u003e\n  \u003cp align='center'\u003e\n    \u003cimg src='https://github.com/ElMassimo/vue-custom-element-example/blob/main/example.png' alt='Example' height=\"72\"/\u003e\n  \u003c/p\u003e\n  \u003csamp\u003edefineCustomElement(DarkModeSwitch)\u003c/samp\u003e\n\u003c/h1\u003e\n\n\u003cbr\u003e\n\nThis repo is an example on how to use the [`defineCustomElement`][defineCustomElement] API in Vue 3.\n\nIt contains examples on [how to export] Vue components as [custom elements], and [how to use them] in any app.\n\n[__Read the blog post__][blog] for a step by step discussion.\n\n## Demo 🚀\n\n[Visit the live demo][demo] to see the custom element in action.\n\n## Play 🎸 \n\n\u003ckbd\u003enpm run dev\u003c/kbd\u003e: build the library and start the playground\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felmassimo%2Fvue-custom-element-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felmassimo%2Fvue-custom-element-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felmassimo%2Fvue-custom-element-example/lists"}