{"id":25895583,"url":"https://github.com/diamondlightsource/web-ui-components","last_synced_at":"2026-06-10T10:31:18.161Z","repository":{"id":183926393,"uuid":"671014310","full_name":"DiamondLightSource/web-ui-components","owner":"DiamondLightSource","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-07T08:49:40.000Z","size":7535,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":19,"default_branch":"master","last_synced_at":"2026-04-07T10:25:15.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DiamondLightSource.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-26T10:47:50.000Z","updated_at":"2026-04-07T08:49:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9b62718-c77b-492f-a06c-db08f7c4a4b7","html_url":"https://github.com/DiamondLightSource/web-ui-components","commit_stats":null,"previous_names":["diamondlightsource/web-ui-components"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/DiamondLightSource/web-ui-components","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fweb-ui-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fweb-ui-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fweb-ui-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fweb-ui-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DiamondLightSource","download_url":"https://codeload.github.com/DiamondLightSource/web-ui-components/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fweb-ui-components/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34149132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-03-02T22:32:06.249Z","updated_at":"2026-06-10T10:31:18.142Z","avatar_url":"https://github.com/DiamondLightSource.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web UI Components Library\n\n![Code CI](https://github.com/DiamondLightSource/web-ui-components/actions/workflows/node.js.yml/badge.svg) ![Apache Licence](https://img.shields.io/badge/License-Apache%202.0-blue.svg)\n\nSource code  |  https://github.com/DiamondLightSource/web-ui-components  |\n-------------|-----------------------------------------------------------|\nStorybook    |  https://diamondlightsource.github.io/web-ui-components/  |\n\nGeneric components for React based Diamond web apps\n\n## Installing\n\n```sh\n    yarn add @diamondlightsource/ui-components\n```\n\n## Building\n\nBuilding the distribution files:\n\n```sh\n    yarn install\n    yarn build\n```\n\nNote: In some versions of Node \u003c 16, there can be problems importing JSON files. In this case, the above command may not work and you should run the following:\n`node --experimental-json-modules rollup --config rollup.config.mjs`\n\n## Storybook\n\nFor examples of how to use components, you can run storybook with yarn storybook. That will open a catalogue of all available components and how to use them. For examples on Chakra (on which this library is based on, and provides plenty of components), visit the project's docs.\n\n## Usage\n\n1. Wrap your application with a Chakra Provider and apply the theme (this is application/framework specific, methods may vary):\n\n```js\n    import { theme } from \"@diamondlightsource/ui-components\";\n\n    \u003cChakraProvider theme={theme}\u003e\n    \u003c/ChakraProvider\u003e\n```\n\n2. Use components\n\n```js\n    import { theme } from \"@diamondlightsource/ui-components\";\n\n    \u003cPagination\n        limit={5}\n        onPageChange={setPage}\n        onItemCountChange={setItemsPerPage}\n        total={900}\n    /\u003e\n```\n\n## Testing\n\n- Run `yarn test`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiamondlightsource%2Fweb-ui-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiamondlightsource%2Fweb-ui-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiamondlightsource%2Fweb-ui-components/lists"}