{"id":22879317,"url":"https://github.com/anthinkingcoder/tb-skeleton","last_synced_at":"2025-05-07T22:22:28.243Z","repository":{"id":32835174,"uuid":"142408550","full_name":"anthinkingcoder/tb-skeleton","owner":"anthinkingcoder","description":"a vue component about toy bricks of skeleton screen loading","archived":false,"fork":false,"pushed_at":"2022-12-08T09:31:21.000Z","size":614,"stargazers_count":93,"open_issues_count":4,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-03T19:04:00.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Vue","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/anthinkingcoder.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":"2018-07-26T07:58:36.000Z","updated_at":"2024-09-22T14:47:55.000Z","dependencies_parsed_at":"2023-01-14T22:22:58.424Z","dependency_job_id":null,"html_url":"https://github.com/anthinkingcoder/tb-skeleton","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthinkingcoder%2Ftb-skeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthinkingcoder%2Ftb-skeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthinkingcoder%2Ftb-skeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthinkingcoder%2Ftb-skeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthinkingcoder","download_url":"https://codeload.github.com/anthinkingcoder/tb-skeleton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252962856,"owners_count":21832410,"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-13T16:38:53.012Z","updated_at":"2025-05-07T22:22:28.164Z","avatar_url":"https://github.com/anthinkingcoder.png","language":"Vue","funding_links":[],"categories":["UI Components [🔝](#readme)","UI组件","Components \u0026 Libraries","UI Components"],"sub_categories":["装载机","UI Components","Loader"],"readme":"# tb-skeleton\na vue component about toy bricks of skeleton screen loading\n\n# install\n ```bash\n $ npm i tb-skeleton -s\n ```\n \n# use npm\n```js\n  import Vue from 'vue'\n  import skeleton from 'tb-skeleton'\n  import  'tb-skeleton/dist/skeleton.css'\n  Vue.use(skeleton)\n```\n\n# use cdn\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/tb-skeleton@0.3.4/dist/tb-skeleton.min.js\"\u003e\u003c/script\u003e\n\u003clink ref=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/tb-skeleton@0.3.3/dist/skeleton.css\"\u003e\u003c/script\u003e\n```\n# live example\n\u003e [simple demo](https://codepen.io/zhoulin/pen/ajRzBL), [page demo](https://codepen.io/zhoulin/pen/ajRzJV)\n\n\n# start\n```html\n\u003ctemplate\u003e\n  \u003cdiv width=\"20%\"\u003e\n    \u003ctb-skeleton :aspect-ratio=\"1\" :theme=\"opacity\" :shape=\"circle\" bg-color=\"#dcdbdc\"\u003e\u003c/tb-skeleton\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\u003cscript\u003e\n\u003c/script\u003e\n```\n\n# use skeleton\n\u003e use skeleton component, you can  set common props\n```html\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cskeleton :theme=\"opacity\" :shape=\"radius\" :bg-color=\"#dcdbdc\"\u003e\n     \u003ctb-skeleton  width=\"30%\" :aspect-ratio=\"1\"  :shape=\"circle\" bg-color=\"#eee\"\u003e\u003c/tb-skeleton\u003e\n     \u003ctb-skeleton  width=\"30%\" :aspect-ratio=\".3\"\u003e\u003c/tb-skeleton\u003e\n     \u003ctb-skeleton  width=\"30%\" :aspect-ratio=\".3\"\u003e\u003c/tb-skeleton\u003e\n   \u003c/skeleton\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\u003cscript\u003e\n  import {TbSkeleton,Skeleton} from 'tb-skeleton'\n  export default {\n    components: {\n      TbSkeleton,\n      Skeleton\n    }\n  }\n\u003c/script\u003e\n```\n\n# use grid layout\n\u003e about grid layout,please see [simple-grid](https://github.com/anthinkingcoder/simple-grid)\n```html\n\u003ctemplate\u003e\n\u003cskeleton theme=\"opacity\" style=\"width:200px\" shape=\"radius\" bg-color=\"#dcdbdc\"\u003e\n    \u003crow\u003e\n      \u003ccol :span=\"8\"\u003e\n        \u003ctb-skeleton :aspect-ratio=\"1\" shape=\"circle\"\u003e\n        \u003c/tb-skeleton\u003e\n      \u003c/col\u003e\n      \u003ccol :span=\"16\"\u003e\n        \u003crow\u003e\n          \u003ccol :span=\"12\" style=\"padding-left: 10px;margin-top: 5px\"\u003e\n            \u003ctb-skeleton :aspect-ratio=\"0.2\"\u003e\u003c/tb-skeleton\u003e\n          \u003c/col\u003e\n          \u003ccol :span=\"24\" style=\"padding-left: 10px;margin-top: 10px\"\u003e\n            \u003ctb-skeleton :aspect-ratio=\"0.1\"\u003e\u003c/tb-skeleton\u003e\n          \u003c/col\u003e\n          \u003ccol :span=\"24\" style=\"padding-left: 10px;margin-top: 10px\"\u003e\n            \u003ctb-skeleton :aspect-ratio=\"0.1\"\u003e\u003c/tb-skeleton\u003e\n          \u003c/col\u003e\n        \u003c/row\u003e\n      \u003c/col\u003e\n    \u003c/row\u003e\n  \u003c/skeleton\u003e\n\u003c/template\u003e\n\u003cscript\u003e\n  import {Col,Row} from 'simple-grid'\n  import {TbSkeleton,Skeleton} from 'tb-skeleton'\n  export default {\n    components: {\n      tb-skeleton,\n      skeleton,\n      Col,\n      Row\n    }\n  }\n\u003c/script\u003e\n```\n\n\n# skeleton Component\n### props\n| param | description | type | default |\n| :-: | :-: | :-: | :-: |\n| theme | ```opacity```,```gradient```,```flex-outer```,```flex-inner```, ```normal``` | String | normal |\n| shape | tb-skeleton shape, ```circle```、```rect```、```radius``` | String |  |\n| bgColor | tb-skeleton background-color | String |  |\n| duration | tb-skeleton animation duration | String,Number |  |\n# tb-skeleton Component\n### props\n| param | description | type | default |\n| :-: | :-: | :-: | :-: |\n| theme | the same as skeleton theme | String | normal |\n| shape | the same as skeleton shape | String | rect |\n| bgColor | the same as skeleton bgColor | String |  |\n| aspectRatio | ratio about width,height  | Number |  |\n| height | the tb-skeleton height  | Number,String |  |\n| width | the tb-skeleton width  | Number,String | 100% |\n| duration | the tb-skeleton animation duration | String,Number |  |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthinkingcoder%2Ftb-skeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthinkingcoder%2Ftb-skeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthinkingcoder%2Ftb-skeleton/lists"}