{"id":22355449,"url":"https://github.com/gregolive/dropdown-menu","last_synced_at":"2026-04-11T11:05:19.752Z","repository":{"id":57114280,"uuid":"466635926","full_name":"gregolive/dropdown-menu","owner":"gregolive","description":"A Javascript dropdown menu npm module.","archived":false,"fork":false,"pushed_at":"2022-03-07T08:01:59.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T23:29:33.200Z","etag":null,"topics":["css","javascript","npm","npm-module"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@gregolive/dropdown","language":"JavaScript","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/gregolive.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}},"created_at":"2022-03-06T04:31:29.000Z","updated_at":"2022-12-29T22:32:23.000Z","dependencies_parsed_at":"2022-08-22T10:11:20.135Z","dependency_job_id":null,"html_url":"https://github.com/gregolive/dropdown-menu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregolive%2Fdropdown-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregolive%2Fdropdown-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregolive%2Fdropdown-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregolive%2Fdropdown-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregolive","download_url":"https://codeload.github.com/gregolive/dropdown-menu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245659050,"owners_count":20651525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["css","javascript","npm","npm-module"],"created_at":"2024-12-04T14:06:32.862Z","updated_at":"2025-10-26T01:21:35.177Z","avatar_url":"https://github.com/gregolive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dropdown Menu\n\nA simple Javascript-powered dropdown menu. Can be activated by click or hover.\n\n[Live demo](https://gregolive.github.io/dynamic-ui-design/#dropdown-demo) 👈\n\n[npm package](https://www.npmjs.com/package/@gregolive/dropdown) 📦\n\n## Prerequisites\n\nFor icons to display, please install [font-awesome](https://www.npmjs.com/package/font-awesome).\n\n## Installation\n\nOn the command line run:\n\n```\nnpm i @gregolive/dropdown\n```\n\nImport the function in your Javascript file with:\n\n```\nimport dropdown from '@gregolive/dropdown';\n```\n\n## Usage\n\nPass 2 or 3 arguments into the dropdown function:\n\n1. \u003ccode\u003etitle\u003c/code\u003e string for the dropdown button\n2. \u003ccode\u003elinks\u003c/code\u003e object containing the text and href for the menu items\n3. \u003ccode\u003ehover\u003c/code\u003e boolean (optional, defaults to false)\n\nAppend to the DOM.\n\nExamples:\n\n```\nconst links = [\n  { text: 'Hello there 👋', href: '#' },\n  { text: \"I'm a dropdown link 🔗\", href: '#' },\n  { text: 'Me too 🤙', href: '#' },\n];\n\nconst clickDropdown = dropdown('Click Me', links);\ndocument.body.appendChild(clickDropdown);\n\nconst hoverDropdown dropdown('Hover Me', links, true);\ndocument.body.appendChild(hoverkDropdown);\n```\n\nDefault styling (colors, padding, etc.) can be overridden by overriding the CSS variables in:\n\n```\n:root {\n  ...\n}\n```\n\n## License\n\nISC","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregolive%2Fdropdown-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregolive%2Fdropdown-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregolive%2Fdropdown-menu/lists"}