f0rextasy

Mobile Menu

Navigation 2

About

A full-screen mobile navigation overlay that slides in with staggered link entrance animations and closes on escape key or link click.

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

Code

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

Usage.tsx

"use client";

import * as React from "react";
import { MobileMenu, type MobileMenuItem } from "@/components/ui/mobile-menu";

const items: MobileMenuItem[] = [
  { id: "home", label: "Home", href: "#" },
  { id: "work", label: "Work", href: "#" },
  { id: "about", label: "About", href: "#" },
  { id: "blog", label: "Blog", href: "#" },
  { id: "contact", label: "Contact", href: "#" },
];

export default function MobileMenuDemo() {
  const [open, setOpen] = React.useState(false);

  return (
    <div className="flex h-screen w-full items-center justify-center bg-background">
      <button
        onClick={() => setOpen(true)}
        className="rounded-sm border border-dashed border-border px-4 py-2 font-mono text-sm font-bold uppercase tracking-wider text-foreground transition-colors hover:text-accent"
      >
        Open menu
      </button>
      <MobileMenu items={items} open={open} onOpenChange={setOpen} />
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    17
  • Board Checklist

    Board Checklist

    15
  • Stamp Seal

    Stamp Seal

    13
  • Network Graph

    Network Graph

    13
  • Navbar

    Navbar

    10
  • Running Order Timeline

    Running Order Timeline

    9
  • Milestone Chart

    Milestone Chart

    9
  • Empty State Card

    Empty State Card

    6

More in Navigation

View all
  • Sidebar

    Sidebar

    381
  • Footer with Big Wordmark

    Footer with Big Wordmark

    1
  • Newsletter Signup Footer

    Newsletter Signup Footer

    24
  • Pagination

    Pagination

    106
  • Flexnative Breadcrumb

    Flexnative Breadcrumb

    1
  • Breadrcrumb

    Breadrcrumb

    5
  • Breadcrumb with Project, User & Document Info

    Breadcrumb with Project, User & Document Info

    16
  • Breadcrumb

    Breadcrumb

    83