navbar 0.0.2

🍔 A highly customizable navbar component for WASM frameworks like Yew, Dioxus, and Leptos.
Documentation
<div align="center">

# 🍔 Navbar

[![Crates.io](https://img.shields.io/crates/v/navbar)](https://crates.io/crates/navbar)
[![Crates.io Downloads](https://img.shields.io/crates/d/navbar)](https://crates.io/crates/navbar)
![Crates.io License](https://img.shields.io/crates/l/navbar)
[![made-with-rust](https://img.shields.io/badge/Made%20with-Rust-1f425f.svg?logo=rust&logoColor=white)](https://www.rust-lang.org/)
[![Rust](https://img.shields.io/badge/Rust-1.85%2B-blue.svg)](https://www.rust-lang.org)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/wiseaidev)

[![Join our Discord](https://dcbadge.limes.pink/api/server/b5JbvHW5nv)](https://discord.gg/b5JbvHW5nv)

<!-- absolute url for docs.rs cause assets is excluded from crate -->
![logo](https://raw.githubusercontent.com/opensass/navbar/refs/heads/main/assets/logo.webp)

</div>

## 🎬 Demo

| Framework | Live Demo |
| --- | --- |
| Yew | [![Netlify Status]https://api.netlify.com/api/v1/badges/a0efc7e9-f20e-4dd9-93e1-c8f4fde7506f/deploy-status]https://navbar-rs.netlify.app |
| Dioxus | [![Netlify Status]https://api.netlify.com/api/v1/badges/a0efc7e9-f20e-4dd9-93e1-c8f4fde7506f/deploy-status]https://navbar-dio.netlify.app |
| Leptos | TODO |

## 📜 Intro

**Navbar** is a fully customizable, responsive **navigation bar component** for WASM frameworks like **Yew**, **Dioxus**, and **Leptos**. Designed for scalability and flexibility, it supports standard, dropdown, and mega menus, with full styling and ARIA-aware accessibility support.

## 🤔 Why Use Navbar?

The following features make Navbar a must-have for modern WASM apps:

1. **🔗 Main, Dropdown, & Mega Menus**: Clean struct-based APIs for structured nav items.
1. **🎨 Customizable Styling**: Inline styles or class overrides for every element.
1. **🔍 Search & CTA Support**: Optional search input, profile avatar, and CTA button.
1. **📱 Mobile Friendly**: Responsive layout with hamburger toggle.
1. **🧑‍🎨 Profile Menu**: Easily integrate a dropdown for user profile actions.

## Yew Usage

<!-- absolute url for docs.rs cause YEW.md is not included in crate -->
Refer to [our guide](https://github.com/opensass/navbar/blob/main/YEW.md) to integrate this component into your Yew app.

## 🧬 Dioxus Usage

<!-- absolute url for docs.rs cause DIOXUS.md is not included in crate -->
Refer to [our guide](https://github.com/opensass/navbar/blob/main/DIOXUS.md) to integrate this component into your Dioxus app.

## 🌱 Leptos Usage (TODO)

<!-- absolute url for docs.rs cause LEPTOS.md is not included in crate -->
Refer to [our guide](https://github.com/opensass/navbar/blob/main/LEPTOS.md) to integrate this component into your Leptos app.

## 🤝 Contributions

Contributions are welcome! Whether it's bug fixes, feature requests, or examples, we would love your help to make Navbar better.

1. Fork the repository.
1. Create a new branch for your feature/bugfix.
1. Submit a pull request for review.

## 📜 License

Navbar is licensed under the [MIT License](LICENSE). You are free to use, modify, and distribute this library in your projects.