@heddy/ui-library
v0.0.4
Published
A modern React UI component library built with TypeScript and Vite
Maintainers
Readme
Heddy UI Library
A modern React UI component library built with TypeScript, Vite, and Storybook. Easily import and use pre-built, production-ready components in your React applications.
Features
- 🚀 Pre-built Components: Ready-to-use React components
- 📘 TypeScript Support: Full type safety and IDE autocomplete
- 🎨 Customizable: Easy to style and extend
- 📚 Storybook Integration: Interactive component documentation
- 🧪 Tested: Comprehensive test coverage
- 📦 ESM & UMD: Works with modern and legacy build systems
Installation
npm install @heddy/ui-library
# or
yarn add @heddy/ui-library
# or
pnpm add @heddy/ui-libraryQuick Start
import { Button } from '@heddy/ui-library';
export default function App() {
return (
<Button onClick={() => console.log('Clicked!')}>
Click me
</Button>
);
}Available Components
- Button: A versatile button component
- (More components coming soon...)
Documentation
Visit the Storybook documentation for interactive component examples and API reference.
npm run storybookDevelopment
Setup
npm installRun Storybook
npm run storybookBuild
npm run buildLint
npm run lintPublishing to NPM
Prerequisites
- Create an npm account at npmjs.com
- Update the
package.jsonwith your information:- Change the
authorfield - Update the
repositoryURL - Update the
bugsURL - Update the
homepageURL
- Change the
Steps to Publish
Build the library:
npm run buildTest locally (optional):
npm link # In another project: npm link @heddy/ui-libraryLogin to npm (first time only):
npm loginUpdate version in
package.json:npm version patch # or minor, majorPublish:
npm publishOr use the shortcut script:
npm run pub
Versioning
- patch (0.0.X): Bug fixes, backward compatible
- minor (0.X.0): New features, backward compatible
- major (X.0.0): Breaking changes
Using in Other Projects
After publishing, use your components in other projects:
npm install @heddy/ui-libraryOr if using a specific version:
npm install @heddy/[email protected]License
MIT
Support
For issues and feature requests, please use the GitHub Issues page.
