@vritti/quantum-ui
v0.2.7
Published
A modern, TypeScript-first React component library built on Radix UI primitives and styled with Tailwind CSS v4. Features a powerful Field system and smart Form component with react-hook-form integration. Fully typed, accessible, and tree-shakeable compon
Maintainers
Readme
@vritti/quantum-ui
A modern, TypeScript-first React component library built on Radix UI primitives and styled with Tailwind CSS v4. Fully typed, accessible, and tree-shakeable.
Features
- 🎨 Tailwind CSS v4 - Modern utility-first styling
- ♿ Accessible - Built on Radix UI primitives
- 📦 Tree-shakeable - Import only what you need
- 🔷 TypeScript - Fully typed with excellent IntelliSense support
- 🎭 Themeable - Dark mode support with ThemeToggle component
- 📚 Documented - Comprehensive Storybook documentation
Documentation
📖 View full documentation and interactive examples on Storybook
Installation
npm install @vritti/quantum-uiyarn add @vritti/quantum-uipnpm add @vritti/quantum-uiPeer Dependencies
Make sure you have the following peer dependencies installed:
npm install react react-domThis library supports React 18.x and 19.x.
Usage
Import components individually for optimal tree-shaking:
import { Button } from '@vritti/quantum-ui/Button';
import { Card } from '@vritti/quantum-ui/Card';
import { TextField } from '@vritti/quantum-ui/TextField';
function App() {
return (
<Card>
<TextField label="Email" placeholder="Enter your email" />
<Button variant="primary">Submit</Button>
</Card>
);
}Or import from the main entry point:
import { Button, Card, TextField } from '@vritti/quantum-ui';Available Components
- Button - Versatile button component with multiple variants
- Card - Container component for grouping content
- TextField - Text input with label and validation support
- PasswordField - Secure password input with show/hide toggle
- Checkbox - Accessible checkbox component
- Typography - Text styling component
- ThemeToggle - Dark/light mode toggle
Development
Prerequisites
- Node.js 18+ or 20+
- npm, yarn, or pnpm
Setup
- Clone the repository:
git clone https://github.com/vritti-hub/quantum-ui.git
cd quantum-ui- Install dependencies:
npm install- Start Storybook for development:
npm run storybook- Build the library:
npm run buildScripts
npm run dev- Start Vite dev servernpm run build- Build the library for productionnpm run storybook- Start Storybook development servernpm run build-storybook- Build Storybook for productionnpm run lint- Lint the codebase
Contributing
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature/amazing-feature) - Make your changes
- Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Contribution Guidelines
- Follow the existing code style
- Write meaningful commit messages
- Add tests for new features
- Update documentation as needed
- Ensure all tests pass before submitting PR
Issues and Support
Found a bug or have a feature request? Please open an issue.
License
This project is licensed under the MIT License - see the LICENSE file for details.
