sundar-ui
v1.0.8
Published
๐ sundar-ui
Readme
๐ sundar-ui
A simple, lightweight React component library with plug-and-play UI elements like Navbar. Customize colors, titles, and links effortlessly. Perfect for modern React projects.
๐ Installation
npm install sundar-uiโก Quick Start
import React from "react";
import { Navbar } from "sundar-ui";
function App() {
return (
<div>
<Navbar
title="My Awesome App"
links={[
{ label: "Home", href: "/" },
{ label: "About", href: "/about" },
{ label: "Contact", href: "/contact" },
]}
backgroundColor="purple"
textColor="#fff"
/>
<main style={{ padding: "2rem" }}>
<h1>Welcome to My App!</h1>
</main>
</div>
);
}
export default App;๐จ Component Props โ Navbar title string โ The site or brand name. links { label: string, href: string }[] โ Array of navigation links. backgroundColor string #333 Background color of the navbar. textColor string #fff Color for text and links.
๐ Important CSS Note To ensure the Navbar is truly full-width:
โ Use this recommended body style:
body {
margin: 0;
min-width: 320px;
min-height: 100vh;
/* Do NOT use `display: flex; place-items: center;` globally. */
}๐ To center your page content, wrap it in a and use flex on that, not on body.
๐ Current Components โ Navbar โ ready to use!
โณ Button โ coming soon!
โณ Footer, Card, Alert โ planned!
๐ค Contributing We love contributions! Hereโs how to get involved:
1๏ธโฃ Fork this repo 2๏ธโฃ Create a feature branch 3๏ธโฃ Add your component or fix 4๏ธโฃ Run tests & lint 5๏ธโฃ Open a pull request!
Feel free to open an issue for ideas, bugs, or requests.
๐ License MIT ยฉ Shyam Sundar
๐ Useful Links ๐ฆ NPM: https://www.npmjs.com/package/sundar-ui
๐ป GitHub: https://github.com/Shyam0709/sundar-ui
๐ Happy building with sundar-ui!
