Octagon UI is a modern and customizable React component library for building responsive and accessible web applications.
Install the library using npm:
npm install octagon-ui
For more info you can take a look at our Official Documentation
To ensure that the components from octagon-ui
are styled correctly, you need to import the globals.css
file in your main App
component. This file typically contains global styles that are necessary for the UI components to render properly.
Here's how you can update your App
component to include the globals.css
import:
import React from 'react';
import { Button, Card, Modal, Input, Dropdown, Tooltip, Navbar, Sidebar } from 'octagon-ui';
import './globals.css'; // Import the global styles
function App() {
return (
{/* Your code */}
);
}
export default App;
Import the components you need and start building your UI:
import { Navbar, Sidebar } from 'octagon-ui';
function Home() {
return (
<>
<Navbar
brand={<h2>Home</h2>}
>
<NavItem>Blog</NavItem>
<NavItem active={true}>Guide</NavItem>
/>
<main>
<Container center>
<Card>
Hello Octagon-UI
</Card>
</Container>
</main>
</>
);
}
For detailed documentation and examples, visit the Octagon Design System Documentation.
We welcome contributions!
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or feedback, please open an issue on GitHub.