{"id":18798510,"url":"https://github.com/uiwebkit/tabs-react","last_synced_at":"2026-04-16T19:03:33.660Z","repository":{"id":143122830,"uuid":"448857487","full_name":"uiwebkit/tabs-react","owner":"uiwebkit","description":"Uni Tabs example for React","archived":false,"fork":false,"pushed_at":"2022-01-17T18:07:23.000Z","size":612,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-29T18:20:43.593Z","etag":null,"topics":["custom-elements","html","javascript","react","reactjs","stencil","tab","tab-bar","tabs","typescript","web","web-components","widget"],"latest_commit_sha":null,"homepage":"https://uiwebkit.com/wgt/tabs/1/","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/uiwebkit.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}},"created_at":"2022-01-17T10:59:18.000Z","updated_at":"2023-02-16T13:47:11.000Z","dependencies_parsed_at":"2023-04-25T18:26:40.980Z","dependency_job_id":null,"html_url":"https://github.com/uiwebkit/tabs-react","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/uiwebkit%2Ftabs-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Ftabs-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Ftabs-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Ftabs-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uiwebkit","download_url":"https://codeload.github.com/uiwebkit/tabs-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239727055,"owners_count":19687099,"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","html","javascript","react","reactjs","stencil","tab","tab-bar","tabs","typescript","web","web-components","widget"],"created_at":"2024-11-07T22:12:15.435Z","updated_at":"2026-01-02T01:30:13.538Z","avatar_url":"https://github.com/uiwebkit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Uni Tabs example for React\n\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app)\n\nCheck out demo [here](https://uiwebkit.github.io/tabs-react/)\n\nCheck out our docs [here](https://uiwebkit.com/wgt/tabs/1/)\n\n### Add to index.html\n\n```html\n\u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@uiwebkit/mat@2.0.0-9/dist/mat.esm.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@uiwebkit/udk@2.0.0-20/dist/udk.esm.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@uiwebkit/tabs@1.0.0/dist/tabs/tabs.esm.js\"\u003e\u003c/script\u003e\n```\n\n#### Specify value for the tabs as JSON string\n\n```jsx\n\u003cuni-tabs value={'[{\"label\": \"Tab 1\"}, {\"label\": \"Tab 2\"}]'}\u003e\n  \u003cuni-template hidden={true}\u003e\n    \u003cdiv\u003eTab Content 1\u003c/div\u003e\n    \u003cdiv\u003eTab Content 2\u003c/div\u003e\n  \u003c/uni-template\u003e\n\u003c/uni-tabs\u003e\n```\n\n#### or specify url to the tabs JSON file (ex. tabs.json) or to the backend API endpoint\n\n```jsx\n\u003cuni-event-load url={'tabs.json'} prop={'value'}\u003e\n  \u003cuni-tabs\u003e\n    \u003cuni-template hidden={true}\u003e\n      \u003cdiv\u003eTab 1 Content\u003c/div\u003e\n      \u003cdiv\u003eTab 2 Content\u003c/div\u003e\n    \u003c/uni-template\u003e\n  \u003c/uni-tabs\u003e\n\u003c/uni-event-load\u003e\n```\n\n#### Next-Gen Customization (with Store)\n\n```jsx\n\u003cuni-store-set path={'tab.store'} state={1}/\u003e\n\n\u003cuni-tabs\u003e\n  \u003cuni-tab-bar mini={true}\u003e\n    \u003cuni-event-store-set listen={'click'} path={'tab.store'} state={0}\u003e\n      \u003cuni-event-store-get path={'tab.store'} equal={0} prop={'active'}\u003e\n        \u003cuni-tab \n            value={'Tab 1'}\n            icon={'favorite'}\n            icon-type={'two-tone'}\n            angle={270}\n        /\u003e\n      \u003c/uni-event-store-get\u003e\n    \u003c/uni-event-store-set\u003e\n\n    \u003cuni-event-store-set listen={'click'} path={'tab.store'} state={1}\u003e\n      \u003cuni-tab only={true}\u003e\n        \u003cuni-tab-content\u003e\n          \u003cuni-tab-icon icons=\"fa\" type={'brands'} name={'font-awesome'}/\u003e\n\n            \u003cuni-tab-text-label\u003eTab 2\u003c/uni-tab-text-label\u003e\n\n            \u003cuni-event-store-get path=\"tab.store\" equal={1} prop={'active'}\u003e\n              \u003cuni-tab-indicator/\u003e\n            \u003c/uni-event-store-get\u003e\n        \u003c/uni-tab-content\u003e\n\n        \u003cuni-tab-ripple/\u003e\n      \u003c/uni-tab\u003e\n    \u003c/uni-event-store-set\u003e\n  \u003c/uni-tab-bar\u003e\n\n  \u003cuni-store-display path={'tab.store'} equal={0} hidden={true}\u003e\n    Tab 1 Content\n  \u003c/uni-store-display\u003e\n\n  \u003cuni-store-display path={'tab.store'} equal={1} hidden={true}\u003e\n    Tab 2 Content\n  \u003c/uni-store-display\u003e\n\u003c/uni-tabs\u003e\n```\n\n#### Next-Gen Customization (with routes)\n\n```jsx\n\u003cuni-router shadow={true}/\u003e\n\u003cuni-router-link activate={true} params=\"custom=1\"/\u003e\n\n\u003cuni-tabs\u003e\n  \u003cuni-tab-bar\u003e\n    \u003cuni-router-link params={'custom=1'}\u003e\n      \u003cuni-route params={'custom=1'} prop={'active'}\u003e\n        \u003cuni-tab\n            value={'Tab 1'}\n            icon={'favorite'}\n            icon-type={'two-tone'}\n            angle={270}\n        /\u003e\n      \u003c/uni-route\u003e\n    \u003c/uni-router-link\u003e\n\n    \u003cuni-router-link params={'custom=2'}\u003e\n      \u003cuni-route params={'custom=2'} prop={'active'}\u003e\n        \u003cuni-tab only={true}\u003e\n          \u003cuni-tab-content\u003e\n            \u003cuni-tab-icon\n                icons={'fa'}\n                type={'brands'}\n                name={'font-awesome'}\n            /\u003e\n\n            \u003cuni-tab-text-label value={'Tab 2'}/\u003e\n\n            \u003cuni-route params={'custom=2'} prop={'active'}\u003e\n              \u003cuni-tab-indicator/\u003e\n            \u003c/uni-route\u003e\n          \u003c/uni-tab-content\u003e\n\n          \u003cuni-tab-ripple/\u003e\n        \u003c/uni-tab\u003e\n      \u003c/uni-route\u003e\n    \u003c/uni-router-link\u003e\n  \u003c/uni-tab-bar\u003e\n\n  \u003cuni-route-display params={'custom=1'} hidden={true}\u003e\n    Tab 1 Content\n  \u003c/uni-route-display\u003e\n\n  \u003cuni-route-display params={'custom=2'} hidden={true}\u003e\n    Tab 2 Content\n  \u003c/uni-route-display\u003e\n\u003c/uni-tabs\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiwebkit%2Ftabs-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuiwebkit%2Ftabs-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiwebkit%2Ftabs-react/lists"}