subquery-ui-library
v1.0.0
Published
Subquery UI Components Library, founded on Antd and built with Vite
Downloads
33
Readme
Subquery UI Components Library
Intiated by forking https://github.com/hugh-onf/components-lib
Usage
yarn add 'subquery-ui'
Main entry
import "subquery-ui/dist/index.css";
Imports
import { Button } from "subquery-ui";
Notes
Because of zero deps strategy,
antd
typings not included. So if we need typings forantd
, we need to installyarn add antd
on the consumer projectsThe bundle size is still big and it can be improved by
- Importing the override components LESS files only not the whole AntD CSS
- Optional or not sure if it helps if we configure it to build a file per component, for example
Button.js
instead of a bigindex.es.js
, and only import by files. Might not worth it because the ES bundle should support tree shaking on the consumer - maybe need to verify that
Still working on figuring out how to best modify components functionality. For example: How can we modify Typography.Text to have an additional prop to apply our styles?