Package Exports
- hazo_config
- hazo_config/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hazo_config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Hazo Config Component Library
A React component library for managing configuration with Storybook for component testing and documentation.
Tech Stack
- React - UI library
- TypeScript - Type safety
- TailwindCSS - Styling
- Shadcn/UI - Component primitives
- Storybook - Component development and testing
- Vite - Build tool
Getting Started
Installation
Install dependencies:
npm installDevelopment
Run Storybook to develop and test components:
npm run storybookThis will start Storybook on http://localhost:6006
Building
Build the library:
npm run buildBuild Storybook for static deployment:
npm run build-storybookProject Structure
hazo_config/
├── src/
│ ├── components/ # React components
│ │ ├── example_component.tsx
│ │ └── example_component.stories.tsx
│ ├── lib/ # Utility functions
│ │ └── utils.ts
│ ├── styles/ # Global styles
│ │ └── globals.css
│ └── index.ts # Main entry point
├── .storybook/ # Storybook configuration
├── components.json # Shadcn/UI configuration
├── tailwind.config.js # TailwindCSS configuration
└── tsconfig.json # TypeScript configurationAdding Components
- Create your component in
src/components/ - Create a corresponding
.stories.tsxfile for Storybook - Export the component from
src/components/index.ts - Export from
src/index.tsto make it available in the library
Adding Shadcn/UI Components
Use the Shadcn CLI to add components:
npx shadcn@latest add [component-name]Code Style
- Use snake_case for file names and variables
- Include file purpose description at the top of each file
- Add comments for functions and major code sections
- Use
cls_prefix for div class names (e.g.,cls_example_component)
License
MIT