LaviKatiyar

Menu

Navigation 291

About

Account Menu – Manage with ease. Quick access to orders, reviews, addresses, favorites, and settings in one place.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Menu to your project and fits it to your theme.

Code

How Menu is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import {
  Truck,
  Star,
  Home,
  Eye,
  Heart,
  Settings,
  LogOut,
  User,
} from 'lucide-react';
import { UserProfileSidebar } from '@/components/ui/menu'; // Adjust the import path

export default function UserProfileSidebarDemo() {
  const user = {
    name: 'Emma',
    email: '[email protected]',
    avatarUrl: 'https://cdn.21st.dev/assets/mirror/bc/bc55f88ce6b77d2bed85230412d90f73e6998cceae2398aa3a20f46efe0546dd.jpg',
  };

  const navItems = [
    {
      label: 'My orders',
      href: '#orders',
      icon: <Truck className="h-full w-full" />,
    },
    {
      label: 'Reviews',
      href: '#reviews',
      icon: <Star className="h-full w-full" />,
    },
    {
      label: 'Delivery addresses',
      href: '#addresses',
      icon: <Home className="h-full w-full" />,
    },
    {
      label: 'Recently viewed',
      href: '#viewed',
      icon: <Eye className="h-full w-full" />,
    },
    {
      label: 'Favorite items',
      href: '#favorites',
      icon: <Heart className="h-full w-full" />,
    },
    {
      label: 'Settings',
      href: '#settings',
      icon: <Settings className="h-full w-full" />,
      isSeparator: true, // This adds space before the settings item
    },
  ];
  
  const logoutItem = {
    label: 'Log out',
    icon: <LogOut className="h-full w-full" />,
    onClick: () => alert('Logging out...'),
  };

  return (
    <div className="flex h-[600px] w-full items-center justify-center bg-background p-10">
      <UserProfileSidebar user={user} navItems={navItems} logoutItem={logoutItem} />
    </div>
  );
}

Dependencies

More by LaviKatiyar

View all
  • Hero Section

    Hero Section

    841
  • Cards

    Cards

    669
  • Service Card

    Service Card

    620
  • Card

    Card

    550
  • Alert Toast

    Alert Toast

    495
  • Bento Grid

    Bento Grid

    421
  • Freelancer Profile Card

    Freelancer Profile Card

    374
  • Referral Card

    Referral Card

    305

More in Navigation

View all
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    60
  • Footer with Big Wordmark

    Footer with Big Wordmark

    37
  • Sidebar

    Sidebar

    391
  • Oversized 404 Numeral

    Oversized 404 Numeral

    78
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    66
  • Pagination

    Pagination

    108
  • NavBar

    NavBar

    2
  • Tabs like bookmark

    Tabs like bookmark

    81