{"id":21182534,"url":"https://github.com/dvshu/litos-ui","last_synced_at":"2025-04-13T17:04:52.217Z","repository":{"id":263296267,"uuid":"889930600","full_name":"DvShu/litos-ui","owner":"DvShu","description":"基于 Web Component 的 UI 组件库","archived":false,"fork":false,"pushed_at":"2025-04-11T19:26:13.000Z","size":6439,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T20:30:39.548Z","etag":null,"topics":["component","ui","web"],"latest_commit_sha":null,"homepage":"https://dvshu.github.io/litos-ui/","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/DvShu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-17T15:52:29.000Z","updated_at":"2025-04-11T19:25:39.000Z","dependencies_parsed_at":"2024-12-04T17:24:20.620Z","dependency_job_id":"6f518546-0ccd-4d3b-b470-0ce88bae5cf3","html_url":"https://github.com/DvShu/litos-ui","commit_stats":null,"previous_names":["dvshu/neatui","dvshu/litos-ui"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DvShu%2Flitos-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DvShu%2Flitos-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DvShu%2Flitos-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DvShu%2Flitos-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DvShu","download_url":"https://codeload.github.com/DvShu/litos-ui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248478966,"owners_count":21110796,"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":["component","ui","web"],"created_at":"2024-11-20T17:57:20.937Z","updated_at":"2025-04-13T17:04:52.212Z","avatar_url":"https://github.com/DvShu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# litos-ui\n\n源自于希腊语中，表示“简洁、朴素”的形容词 \"λιτός\" (`litós`)；所有组件均以 `l-` 为前缀，如 `l-button`、`l-input` 等。\n\n采用原生 `Web Components` 作为技术栈，不依赖任何第三方库，可运行在现代浏览器上。跨平台、跨框架，可运行在 `React`、`Vue`、`Angular` 等框架中。\n\n## 安装\n\n```bash\nnpm install litos-ui\n```\n\n如果需要自动使用一些服务组件，例如: `Message`、`ModalBox` 等且需要自动引入样式时，需要安装 `litosui-unplugin-resolver`、`unplugin-auto-import` 插件。\n\n```js\n// vite.config.js\nimport AutoImport from \"unplugin-auto-import/vite\";\nimport LitosuiResolver from \"litosui-unplugin-resolver\";\n\n// https://vitejs.dev/config/\nexport default defineConfig({\n  plugins: [\n    ...,\n    AutoImport({\n      resolvers: [LitosuiResolver()],\n      dts: \"src/auto-imports.d.ts\",\n    }),\n  ],\n  ...\n});\n```\n\n## 使用\n\n引入相关组件并注册\n\n```js\nimport { Button, regist } from \"litos-ui\";\n\nregist([Button]); // \u003cl-button\u003e\u003c/l-button\u003e\n```\n\n## 文档\n\n[litos-ui 文档](https://dvshu.github.io/litos-ui/)\n\n## 许可证\n\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvshu%2Flitos-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvshu%2Flitos-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvshu%2Flitos-ui/lists"}