reacui-components
v0.1.3
Published
A React UI Library with customizable components
Downloads
14
Readme
ReacUI
A modern React UI library with customizable components, built with Tailwind CSS and React 18.
Features
- 30 customizable React components
- Light and dark mode support
- Responsive design
- Tailwind CSS styling
- Lightweight bundle size
- Comprehensive documentation
Installation
npm install reacui
# or
yarn add reacuiUsage
import React from 'react';
import { ThemeProvider, Button } from 'reacui';
import 'reacui/dist/style.css'; // Import styles
function App() {
return (
<ThemeProvider>
<div className="p-4">
<h1 className="text-2xl font-bold mb-4">ReacUI Demo</h1>
<div className="space-x-2">
<Button>Default Button</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="outline">Outline</Button>
<Button variant="ghost">Ghost</Button>
</div>
<div className="mt-4 space-x-2">
<Button size="sm">Small</Button>
<Button size="md">Medium</Button>
<Button size="lg">Large</Button>
</div>
<div className="mt-4">
<Button disabled>Disabled</Button>
</div>
</div>
</ThemeProvider>
);
}
export default App;Available Components
- Button: Standard button with variants, sizes, and states
- [Additional components coming soon]
Theme Support
ReacUI supports both light and dark modes through the ThemeProvider component:
import { ThemeProvider } from 'reacui';
function App() {
return (
<ThemeProvider defaultTheme="light">
{/* Your app content */}
</ThemeProvider>
);
}You can toggle between themes with:
import { useTheme } from 'reacui';
function ThemeToggle() {
const { toggleTheme } = useTheme();
return (
<button onClick={toggleTheme}>
Toggle Theme
</button>
);
}Development
To work on this library:
- Clone the repository
- Install dependencies:
npm install - Build the library:
npm run build - Run tests:
npm test
License
MIT
