
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@ar-dacity/ardacity-navbar
Advanced tools
A customizable responsive navigation bar with Arweave wallet integration
A modern, responsive navigation bar component for React applications with Arweave wallet integration.
npm install @ar-dacity/ardacity-navbar
import { ArDacityNavBar } from '@ar-dacity/ardacity-navbar';
// OR use default import
// import ArDacityNavBar from '@ar-dacity/ardacity-navbar';
function App() {
return (
<div>
<ArDacityNavBar
links={[
{ label: 'Home', href: '/', isActive: true },
{ label: 'About', href: '/about' },
{ label: 'Projects', href: '/projects' },
{ label: 'Contact', href: '/contact' }
]}
showWalletButton={true}
/>
{/* Rest of your app */}
<main className="container mx-auto p-4">
<h1 className="text-2xl font-bold">Welcome to my dApp</h1>
</main>
</div>
);
}
Prop | Type | Default | Description |
---|---|---|---|
brand | ReactNode | "ArDacity" | Logo or brand element |
links | Array | [] | Navigation links |
actions | ReactNode | undefined | Additional elements for the right side |
showWalletButton | boolean | true | Whether to show wallet connect button |
walletButtonProps | Object | undefined | Props for the wallet button component |
variant | string | 'default' | Navbar style variant |
position | string | 'sticky' | Navbar position |
className | string | '' | Additional CSS classes |
mobileMenuClassName | string | '' | Additional CSS classes for mobile menu |
themeColor | string | undefined | Custom theme color for accent variant |
Standard white/dark navigation bar with subtle shadow on scroll.
Transparent navigation bar that adds a subtle background on scroll.
Fully transparent navigation bar with no background.
Colored navigation bar using the primary theme color.
Modern glass-like effect with blur backdrop.
// Glass variant
<ArDacityNavBar
variant="glass"
links={[/* your links */]}
/>
// Accent variant with custom color
<ArDacityNavBar
variant="accent"
themeColor="bg-purple-600"
links={[/* your links */]}
/>
// Fixed position
<ArDacityNavBar
position="fixed"
links={[/* your links */]}
/>
// Custom brand/logo
<ArDacityNavBar
brand={
<div className="flex items-center">
<img src="/logo.svg" alt="Logo" className="h-8 w-auto" />
<span className="ml-2 text-xl font-bold">MyApp</span>
</div>
}
links={[/* your links */]}
/>
This component is designed to work with Tailwind CSS. Make sure you have Tailwind CSS set up in your project.
MIT
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.