{"id":21169544,"url":"https://github.com/xgqfrms/wcui","last_synced_at":"2026-04-13T19:32:07.680Z","repository":{"id":49848985,"uuid":"510794914","full_name":"xgqfrms/wcui","owner":"xgqfrms","description":" Web Components UI (@xgqfrms/wcui)","archived":false,"fork":false,"pushed_at":"2022-08-09T11:24:30.000Z","size":137,"stargazers_count":1,"open_issues_count":9,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-23T18:15:46.913Z","etag":null,"topics":["javascript","lit","npm","typescript","ui","wcui","web-components","xgqfrms"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@xgqfrms/wcui","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/xgqfrms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["xgqfrms"],"patreon":"xgqfrms","tidelift":"npm/@xgqfrms/wcui","custom":["https://www.paypal.me/xgqfrms","xgqfrms.xyz"]}},"created_at":"2022-07-05T15:32:19.000Z","updated_at":"2022-08-29T10:54:46.000Z","dependencies_parsed_at":"2022-08-12T20:50:27.003Z","dependency_job_id":null,"html_url":"https://github.com/xgqfrms/wcui","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/xgqfrms/wcui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgqfrms%2Fwcui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgqfrms%2Fwcui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgqfrms%2Fwcui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgqfrms%2Fwcui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xgqfrms","download_url":"https://codeload.github.com/xgqfrms/wcui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgqfrms%2Fwcui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31768636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["javascript","lit","npm","typescript","ui","wcui","web-components","xgqfrms"],"created_at":"2024-11-20T15:52:10.158Z","updated_at":"2026-04-13T19:32:07.652Z","avatar_url":"https://github.com/xgqfrms.png","language":"JavaScript","funding_links":["https://github.com/sponsors/xgqfrms","https://patreon.com/xgqfrms","https://tidelift.com/funding/github/npm/@xgqfrms/wcui","https://www.paypal.me/xgqfrms","xgqfrms.xyz"],"categories":[],"sub_categories":[],"readme":"![](https://img.shields.io/badge/webcomponents.org-published-blue.svg) [![](https://img.shields.io/badge/webcomponents.org-@xgqfrms/wcui-deepgreen.svg)](https://www.webcomponents.org/element/@xgqfrms/wcui)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n# Web Components UI\n\n\u003e WCUI\n\nhttps://www.webcomponents.org/element/@xgqfrms/wcui\n\n## install\n\n```sh\n# Web Components UI\n$ npm i -S @xgqfrms/wcui\n\n```\n\n\u003c!-- https://www.npmjs.com/package/wcui --\u003e\n\nhttps://www.npmjs.com/package/@xgqfrms/wcui\n\n\u003e lit version\n\nhttps://www.npmjs.com/package/lit-wcui\n\n## usage\n\n```html\n\u003c!-- step1. import wcui --\u003e\n\u003cscript src=\"../dist/wcui/index.min.js\"\u003e\u003c/script\u003e\n\n\u003c!-- step2. use wcui-??? --\u003e\n\n\u003c!-- wcui-toast --\u003e\n\u003cwcui-toast content=\"this is one custom `Toast` components\"\u003e\u003c/wcui-toast\u003e\n\n\u003c!-- wcui-button --\u003e\n\u003cwcui-button\u003e\u003c/wcui-button\u003e\n\u003cwcui-button type=\"primary\"\u003e\n  \u003cspan slot=\"text\"\u003e\n    默认按钮\n  \u003c/span\u003e\n\u003c/wcui-button\u003e\n\u003cwcui-button type=\"success\"\u003e\n  \u003cspan slot=\"text\" onclick=\"callback('success')\"\u003e\n    成功按钮\n  \u003c/span\u003e\n\u003c/wcui-button\u003e\n\u003cwcui-button type=\"warning\" callback=\"callback\"\u003e\n  \u003cspan slot=\"text\"\u003e\n    警告按钮\n  \u003c/span\u003e\n\u003c/wcui-button\u003e\n\u003cwcui-button type=\"danger\" callback=\"callback\"\u003e\n  \u003cspan slot=\"text\"\u003e\n    危险按钮\n  \u003c/span\u003e\n\u003c/wcui-button\u003e\n\n \u003c!-- wcui-time-formatter --\u003e\n\u003cwcui-time-formatter id=\"time\"\n  hour=\"numeric\"\n  minute=\"numeric\"\n  second=\"numeric\"\u003e\n\u003c/wcui-time-formatter\u003e\n```\n\n```js\nconst callback = (type = '') =\u003e {\n  console.log('button type', type);\n  alert(`🎉 button type =${type}`);\n}\n\nwindow.callback = callback;\n\n```\n\n\u003c!-- ![](https://img2022.cnblogs.com/blog/740516/202207/740516-20220706163918327-2102287624.png) --\u003e\n![](https://user-images.githubusercontent.com/7291672/177508468-07c709a8-edd3-4e25-8048-a3996a0c92e9.png)\n\n\n\n## live demo\n\n\u003c!--\n```\n\u003ccustom-element-demo\u003e\n  \u003ctemplate\u003e\n    \u003clink rel=\"import\" href=\"./test/index.html\"\u003e\n    \u003cnext-code-block\u003e\u003c/next-code-block\u003e\n  \u003c/template\u003e\n\u003c/custom-element-demo\u003e\n```\n--\u003e\n\n```html\n  \u003c!-- wcui-button --\u003e\n  \u003cdiv class=\"box\"\u003e\n    \u003cwcui-button\u003e\u003c/wcui-button\u003e\n    \u003cwcui-button type=\"primary\"\u003e\n      \u003cspan slot=\"text\"\u003e\n        默认按钮\n      \u003c/span\u003e\n    \u003c/wcui-button\u003e\n    \u003cwcui-button type=\"success\"\u003e\n      \u003c!-- onclick --\u003e\n      \u003cspan slot=\"text\" onclick=\"callback('success')\"\u003e\n        成功按钮\n      \u003c/span\u003e\n    \u003c/wcui-button\u003e\n    \u003c!-- callback --\u003e\n    \u003cwcui-button type=\"warning\" callback=\"callback\"\u003e\n      \u003cspan slot=\"text\"\u003e\n        警告按钮\n      \u003c/span\u003e\n    \u003c/wcui-button\u003e\n    \u003cwcui-button type=\"danger\" callback=\"callback\"\u003e\n      \u003cspan slot=\"text\"\u003e\n        危险按钮\n      \u003c/span\u003e\n    \u003c/wcui-button\u003e\n  \u003c/div\u003e\n```\n\n\n## wcui components table\n\n\n|name|props|type|default|\n|-|-|-|-|\n|wcui-toast|content|string|''|\n|wcui-button|type|'primary'/'success'/'warning'/'danger'|'primary'|\n|wcui-time-formatter|datetime / year / month / day/ hour / minute / second / time-zone-nam|string|Date.now()|\n|-|-|-|-|\n|-|-|-|-|\n|-|-|-|-|\n\n\n## dev\n\n\u003e github\n\n```sh\n# dev\n$ npm run dev\n\n# build\n$ npm run build\n\n```\n\n\u003e npm\n\n```sh\n# publish\n$ npm publish\n# $ npm publish --access=public\n\n```\n\nhttps://github.com/xgqfrms/wcui\n\n\n## refs\n\nhttps://developer.mozilla.org/en-US/docs/Web/Web_Components/\n\nhttps://javascript.info/custom-elements\n\nhttps://rollupjs.org/\n\n\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://www.xgqfrms.xyz\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/7291672?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003exgqfrms\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/xgqfrms/wcui/commits?author=xgqfrms\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/xgqfrms/wcui/pulls?q=is%3Apr+reviewed-by%3Axgqfrms\" title=\"Reviewed Pull Requests\"\u003e👀\u003c/a\u003e \u003ca href=\"#maintenance-xgqfrms\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxgqfrms%2Fwcui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxgqfrms%2Fwcui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxgqfrms%2Fwcui/lists"}