A set of tree-shakeable utilities, hooks and React components used through Zotero web applications.
Expected usage is as a git submodule from a tagged version following semver. Indivudual directories (components/, hooks/ and utils/) are index allowing direct imports, e.g. import { Dropdown } from 'web-common/components'.
A demo app showcasing core components is available in the demo/ directory. To start it:
npm start
Then open http://localhost:5173/ in the browser.
npm test
This runs Playwright component tests. Linting and type checking are also available:
npm run lint
npm run typecheck