nitro-ui-components
v0.0.2
Published
Nitro UI Components is a UI kit with a theme modification. It was originally developed with [SvelteKit](https://kit.svelte.dev) by the GIX team.
Downloads
3
Maintainers
Readme
Nitro UI Components
Nitro UI Components is a UI kit with a theme modification. It was originally developed with SvelteKit by the GIX team.
Getting Started
The component library has been originally implemented for the frontend dapp of the Network Nervous System (NNS).
It undergoes continuous improvements, and its showcase and documentation are deployed on the IC: https://gix.design/.
Installation
Install nitro-ui-components
as a dependency.
npm i nitro-ui-components
Packaging
Running npm run package
bundles the library. It takes the contents of src/lib
and generate a dist
directory.
The root directory can be used to consume a local version of nitro-ui-components
in another project (npm i /../nitro-ui-components
).
However, to run 'jest' unit tests in the other project, the library needs to be packed first (cd package && npm pack
) before being installed (e.g. npm i /../nitro-ui-components/nitro-ui-components.tgz
).
See documentation for more information.
Documentation & Showcase
To run the documentation locally, npm run dev
can be executed.
Running npm run build
will bundle the showcase. It should be executed before deploying the documentation to a canister smart contract.
Note: all pages of the application are set to be pre-rendered per default.