<<<<<<< HEAD
A modern, animated navigation component inspired by Stripe's design system. Built with React, TypeScript, Tailwind CSS, and Framer Motion.
# Using npm
npm install modern-stripe-nav
# Using yarn
yarn add modern-stripe-nav
# Using pnpm
pnpm add modern-stripe-nav
import { Navbar } from 'modern-stripe-nav';
import { productItems, solutionItems, developerItems, resourceItems } from './mockData';
function App() {
return (
<div className="app">
<Navbar />
</div>
);
}
// mockData.ts
import { CreditCard, Building2, ShoppingCart /* ... */ } from 'lucide-react';
export const productItems = [
{
title: "Global Payments",
links: [
{ name: "Payments", icon: CreditCard },
// ... more items
]
}
// ... more sections
];
The component uses Tailwind CSS for styling and can be customized using your project's tailwind.config.js
:
module.exports = {
theme: {
extend: {
colors: {
background: 'var(--background)',
text: 'var(--text)',
// ... your custom colors
},
},
},
};
Prop | Type | Default | Description |
---|---|---|---|
className | string | undefined | Additional classes to apply to the navbar |
logo | ReactNode | 'Stripe' | Custom logo component |
menuData | MenuData | defaultMenuData | Navigation menu structure |
Prop | Type | Default | Description |
---|---|---|---|
title | string | required | Title of the dropdown section |
items | MenuItem[] | required | Array of menu items |
Contributions are welcome! Please read our contributing guidelines to get started.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)This project is licensed under the MIT License - see the LICENSE file for details.
If you found this helpful, please consider giving it a star โญ๏ธ to show your support!
This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
33a036c (feat: Initial commit ๐)