cyberenginex-uikit
v0.1.14
Published
A reusable UI component library built on top of [Chakra UI](https://chakra-ui.com/) designed for modern React and Next.js applications. This project uses Storybook for development and documentation, and tsdown for building and publishing.
Downloads
1,253
Readme
CyberEngineX UI Kit
A reusable UI component library built on top of Chakra UI designed for modern React and Next.js applications.
This project uses Storybook for development and documentation, and tsdown for building and publishing.
Peer Dependencies
This UI kit is built on top of Chakra UI and React, which are treated as peer dependencies and are not bundled in the build output.
You must install the following packages in your consuming application:
npm install react react-dom @chakra-ui/react @emotion/reactor using yarn:
yarn add react react-dom @chakra-ui/react @emotion/reactor using pnpm:
pnpm add react react-dom @chakra-ui/react @emotion/reactWhy peer dependencies?
- Prevents duplicate React or Chakra instances
- Allows the consumer to control framework versions
- Reduces bundle size
- Avoids theme and context conflicts
Scripts
This project includes several npm scripts to support development, formatting, building, and publishing the UI library.
Storybook
Run Storybook locally for component development and visual testing:
npm run storybookStorybook will start at:
http://localhost:6006Code Formatting
Check code formatting using Prettier:
npm run format:checkAutomatically format all supported files:
npm run format:writeSupported file types:
.js.jsx.ts.tsx
Build (Library Output)
Build the UI library using tsdown.
This generates the production-ready files inside the dist/ directory.
npm run tsdown:buildPublish to npm
Build and publish the package to the npm registry:
npm run publish:pkgThis command:
- Builds the library using
tsdown - Publishes the contents of
dist/to npm
⚠️ Important
- Make sure the
versionfield inpackage.jsonis updated before publishing - Published versions cannot be overwritten
Notes
- Storybook is used for development and documentation only
- The published package contains compiled output only (
dist/) - React and Next.js are treated as peer dependencies to avoid duplication
- The library is optimized for tree-shaking in modern bundlers
