Akomponent is a lightweight, customizable UI component library built for modern web applications. Designed for speed, simplicity, and flexibility, it provides ready-to-use components to accelerate your development workflow. π‘
β
Prebuilt, Reusable UI Components π¨
β
Fully Customizable & Responsive π±
β
Optimized for Performance & Accessibility β‘
β
Works Seamlessly with React & Tailwind CSS π₯
β
Minimal Dependencies for Faster Load Times ποΈ
npm install akomponents-libak i akomponents-libImport and use components in your project easily:
import { Button } from "akomponent";
export default function App() {
return <Button variant="primary">Click Me</Button>;
}β Supports props for customization!
<Button variant="secondary" size="lg" onClick={() => alert("Hello!")}>
Custom Button
</Button>β
Buttons - Primary, Secondary, Outline, Icon Buttons
β
Cards - Customizable layout with images & text
β
Modals - Smooth, accessible popups
β
Forms - Inputs, Checkboxes, and Toggles
β
Alerts - Success, Warning, Error messages
β
Navbars - Responsive and interactive navigation bars
π More components coming soon! π
Akomponent is fully customizable with Tailwind CSS and supports theme overrides.
<Button className="bg-blue-500 hover:bg-blue-600 text-white">Custom Styled Button</Button>Want to modify defaults? Extend Tailwindβs config!
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
brand: "#4A90E2",
},
},
},
};Check out the full documentation and live demo here.
Use components in your project:
import { Card } from "akomponent";
export default function Example() {
return (
<Card>
<h2 className="text-xl font-bold">Welcome to Akomponent</h2>
<p>This is a simple card component.</p>
</Card>
);
}import { Button, Alert, Modal } from "akomponent";
export default function Example() {
return (
<div>
<Alert type="success">This is a success message!</Alert>
<Button onClick={() => console.log("Button Clicked")}>Click Me</Button>
<Modal isOpen={true} title="Example Modal">
<p>Modal Content Goes Here</p>
</Modal>
</div>
);
}We welcome contributions! To set up locally:
git clone https://github.com/yourusername/akomponent.git
cd akomponent
npm install
npm run devπ Submit pull requests and help improve Akomponent!
Akomponent is licensed under the MIT License β free for personal and commercial use.
β Star this repo if you find it useful! π