@shubham_chauhan/component-lib
v1.1.10
Published
**Behold! A delightfully crafted, accessible, and customizable React Component Library built with Vite, TypeScript, and Storybook.**
Downloads
30
Readme
🚀 React Component Library: Building Blocks for Awesome UIs!
Behold! A delightfully crafted, accessible, and customizable React Component Library built with Vite, TypeScript, and Storybook.
✨ See it in action! 👉 Play with our Storybook
🎨 What makes this library awesome?
- Atomic Design Magic: Bringing a science concept to reality - atoms. See how tiny atom transform into molecules and then into full-blown organisms to create UI masterpieces!
- Theme Switching Superpowers: Flip between light and dark themes with a single click. Like magic!
- Responsive Goodness: Components that adapt faster than a chameleon.
- Accessibility Champion: Because everyone deserves a great user experience, no exceptions!
- Customization Paradise: Tweak and tune to make these components truly yours.
- TypeScript + React: Typings that makes your IDE happy and your bugs sad.
- Vite-powered: Lightning-fast builds.
- Styled Components: Scoped CSS-in-JS.
- Storybook Wonderland: An interactive playground where components come to life.
- Testing Confidence: Some tests that let you sleep peacefully at night.
📚 Component Hierarchy (It's Like a UI Family Tree!)
We've embraced the Atomic Design Principle - it's not just a methodology, it's a way of life:
Atoms (basic building blocks of UI)
Funky SVG icons that bring personality to UI!
Molecules (groupings of atoms)
- Expandable content sections that provide interactive visibility control with various styling options and custom icons.

- Expandable content sections that provide interactive visibility control with various styling options and custom icons.
Organisms (The Ultimate Team-up)
- Grouped Expandable Panels that provide advanced keyboard navigation, accessibility features, and customizable expand/collapse behaviors.

- Grouped Expandable Panels that provide advanced keyboard navigation, accessibility features, and customizable expand/collapse behaviors.
🌈 Storybook - Where Components Come to Party!
Dive into our interactive Storybook wonderland:
👉 Explore the Storybook Universe

Plot twist: We have themes!
Don't forget to toggle between themes

🚀 Getting Started in 3... 2... 1...
What you'll need:
- Node.js (v16.0.0+) - Not your grandma's JavaScript!
- npm (v8.0.0+) or yarn (v1.22.0+) - Package management with personality!
Installation (Let's Do This!)
Clone, navigate, dominate:
git clone https://github.com/shubhamchauhan4488/component-lib.git
cd component-lib
npm installMagic Commands at your disposal
Run Storybook
npm run storybookBuild Storybook static files
npm run build-storybookBuild the component library
npm run buildRun tests
npm run testRun tests in watch mode
npm run test:watchRun tests with coverage
npm run test:coveragePreview built components
npm run preview📦 Add Some Spice to Your Project!
Install our delightful package:
npm install @shubham_chauhan/component-libImport and use components (it's simple):
import { Accordion, ExpandablePanel, Icon } from '@shubham_chauhan/component-lib';
const MyComponent = () => (
<Accordion
allowMultipleOpen={true}
panelVariant="PRIMARY"
items={[{
id: 'example-panel',
title: 'Example Panel',
content: `<div>`Example content goes here.`</div>`,
}]}
/>
);Cherry-pick components if you're feeling selective:
import { Accordion } from '@shubham_chauhan/component-lib/components/accordion';
const MyComponent = () => (
<Accordion
allowMultipleOpen={true}
panelVariant="PRIMARY"
items={[{
id: 'example-panel',
title: 'Example Panel',
content: `<div>`Example content goes here.`</div>`,
}]}
/>
);📖 For more inspiration
Visit our Storybook playground 👉 Storybook Wonderland for interactive examples that will make you say "Wow, I need this in my project!"
