{"id":32692631,"url":"https://github.com/thatbeautifuldream/nested-menu-drawer","last_synced_at":"2026-05-17T15:02:38.292Z","repository":{"id":319243121,"uuid":"1078038828","full_name":"thatbeautifuldream/nested-menu-drawer","owner":"thatbeautifuldream","description":"A fully accessible, animated drawer component for React with nested navigation support, smooth transitions, and keyboard shortcuts.","archived":false,"fork":false,"pushed_at":"2025-10-17T08:05:20.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-01T16:06:11.034Z","etag":null,"topics":["framer-motion","micro-interactions","nested-drawer","vaul"],"latest_commit_sha":null,"homepage":"https://nested-drawer.milind.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thatbeautifuldream.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-17T05:49:10.000Z","updated_at":"2025-10-17T08:05:24.000Z","dependencies_parsed_at":"2025-10-18T15:16:57.982Z","dependency_job_id":"2fbbaad6-c21d-4f19-aeb1-8b1163b32694","html_url":"https://github.com/thatbeautifuldream/nested-menu-drawer","commit_stats":null,"previous_names":["thatbeautifuldream/nested-menu-drawer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thatbeautifuldream/nested-menu-drawer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatbeautifuldream%2Fnested-menu-drawer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatbeautifuldream%2Fnested-menu-drawer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatbeautifuldream%2Fnested-menu-drawer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatbeautifuldream%2Fnested-menu-drawer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thatbeautifuldream","download_url":"https://codeload.github.com/thatbeautifuldream/nested-menu-drawer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatbeautifuldream%2Fnested-menu-drawer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33143276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["framer-motion","micro-interactions","nested-drawer","vaul"],"created_at":"2025-11-01T16:01:42.030Z","updated_at":"2026-05-17T15:02:38.287Z","avatar_url":"https://github.com/thatbeautifuldream.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nested Menu Drawer\n\nA fully accessible, animated drawer component for React with nested navigation support, smooth transitions, and keyboard shortcuts.\n\n\u003e [!Note]\n\u003e Deployed : https://nested-drawer.milind.app\n\n## Features\n\n- Direction-aware navigation with smooth slide animations\n- Automatic height transitions between menu levels\n- Keyboard accessible (Tab, Escape, Cmd/Ctrl+K)\n- Compound component pattern for flexible composition\n- TypeScript support\n- Built with Framer Motion and Tailwind CSS\n\n## Usage\n\n```tsx\nimport { NestedDrawer, TMenuItem } from \"@/components/nested-drawer\";\n\nconst menuData: TMenuItem[] = [\n  {\n    id: \"home\",\n    title: \"Home\",\n    description: \"Go to homepage\",\n    icon: \u003cHomeIcon /\u003e,\n    onClick: () =\u003e console.log(\"Home clicked\"),\n  },\n  {\n    id: \"products\",\n    title: \"Products\",\n    description: \"Browse products\",\n    icon: \u003cPackageIcon /\u003e,\n    children: [\n      {\n        id: \"software\",\n        title: \"Software\",\n        icon: \u003cServerIcon /\u003e,\n        onClick: () =\u003e console.log(\"Software clicked\"),\n      },\n    ],\n  },\n];\n\nfunction App() {\n  return (\n    \u003cNestedDrawer initialMenu={menuData}\u003e\n      \u003cNestedDrawer.Trigger\u003eOpen Menu\u003c/NestedDrawer.Trigger\u003e\n      \u003cNestedDrawer.Content title=\"Main Menu\"\u003e\n        \u003cNestedDrawer.Menu /\u003e\n      \u003c/NestedDrawer.Content\u003e\n    \u003c/NestedDrawer\u003e\n  );\n}\n```\n\n## API\n\n### NestedDrawer\n\nMain container component.\n\n- `initialMenu`: Array of menu items to display\n- `children`: Compound components (Trigger, Content)\n\n### TMenuItem\n\n```ts\ntype TMenuItem = {\n  id: string; // Unique identifier\n  title: string; // Display text\n  description?: string; // Optional subtitle\n  icon?: React.ReactNode; // Optional icon\n  children?: TMenuItem[]; // Nested menu items\n  onClick?: () =\u003e void; // Action when clicked (leaf items)\n};\n```\n\n### Components\n\n- `NestedDrawer.Trigger`: Button to open the drawer\n- `NestedDrawer.Content`: Drawer overlay and container\n- `NestedDrawer.Menu`: Renders the current menu level\n\n### Keyboard Shortcuts\n\n- `Cmd+K` or `Ctrl+K`: Open drawer\n- `Escape`: Go back one level or close drawer\n- `Tab` / `Shift+Tab`: Navigate between items\n- `Enter` / `Space`: Select item\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatbeautifuldream%2Fnested-menu-drawer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthatbeautifuldream%2Fnested-menu-drawer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatbeautifuldream%2Fnested-menu-drawer/lists"}