mozaic-ui
Version:
Mozaic UI is a minimal and extensible UI component library for React. It provides reusable, accessible, and customizable components, perfect for modern web interfaces. Built with scalability and developer experience in mind.
62 lines (44 loc) • 1.89 kB
Markdown
Mozaic UI is a minimal and extensible UI component library for React. It provides reusable, accessible, and customizable components, perfect for modern web interfaces. Built with scalability and developer experience in mind.
---
- Lightweight & Modular
- Customizable Variants, Sizes, Colors, and Radius
- TypeScript Support
- Modern CSS Techniques
- Design Tokens and Semantic Colors
- Ready for Theming & Extensions
---
```bash
npm install mozaic-ui
yarn add mozaic-ui
```
```bash
import { Button } from 'mozaic-ui';
function App() {
return (
<>
<Button onClick={() => alert('Clicked!')}>Default</Button>
<Button variant="plain">Plain</Button>
<Button variant="solid">Solid</Button>
<Button variant="outline">Outline</Button>
<Button size="lg" color="success">Success Large</Button>
<Button color="danger-outline" radius="rounded-full">Danger Outline</Button>
</>
);
}
export default App;
```
- `Button`
A versatile and customizable button component with support for variants, sizes, colors, and border radius.
| Prop | Type |
|------------|-------------------------------------------------------------------------------------------|
| `variant` | `'solid'` \| `'outline'` \| `'plain'` |
| `size` | `'xs'` \| `'sm'` \| `'lg'` \| `'xl'` |
| `color` | `'success'` \| `'danger'` \| `'warning'` \| `'success-outline'` \| `'danger-outline'` \| `'warning-outline'` |
| `radius` | `'rounded-none'` \| `'rounded-sm'` \| `'rounded-lg'` \| `'rounded-full'` |