{"id":21853330,"url":"https://github.com/emnudge/svelte-toolbar","last_synced_at":"2026-05-08T08:03:30.322Z","repository":{"id":49818547,"uuid":"267220454","full_name":"EmNudge/svelte-toolbar","owner":"EmNudge","description":"toolbars in svelte","archived":false,"fork":false,"pushed_at":"2022-07-26T22:52:14.000Z","size":17,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-18T04:35:12.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/EmNudge.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":"2020-05-27T04:28:14.000Z","updated_at":"2023-05-12T01:40:47.000Z","dependencies_parsed_at":"2022-09-05T16:40:09.716Z","dependency_job_id":null,"html_url":"https://github.com/EmNudge/svelte-toolbar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EmNudge/svelte-toolbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmNudge%2Fsvelte-toolbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmNudge%2Fsvelte-toolbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmNudge%2Fsvelte-toolbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmNudge%2Fsvelte-toolbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmNudge","download_url":"https://codeload.github.com/EmNudge/svelte-toolbar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmNudge%2Fsvelte-toolbar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32772048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"last_error":"SSL_read: 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":[],"created_at":"2024-11-28T01:21:46.786Z","updated_at":"2026-05-08T08:03:30.233Z","avatar_url":"https://github.com/EmNudge.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Svelte Toolbar\n\nThis was created when looking for a proper way to display a user-navigable menu.\nThis emulates the toolbar menu you would find on products like VS-Code. \n\nUnfortunately, the CSS is not easily changeable. If you have ideas for how to remedy this, you can leave them in an issue. For now, you can simply copy/paste the code and just change the CSS.\n\n## Usage\n```html\n\u003cscript\u003e\n  import Toolbar from 'svelte-toolbar';\n  // snip...\n  const menu = [\n    { name: 'File', children: [\n      { name: 'Save As...', action: saveItem },\n      { name: 'Close', action: closeFile },\n    ]},\n    { name: 'Edit', children: [\n      { name: 'Do Thing', action: doThing },\n      { name: 'Do Other Thing', action: doOtherThing }\n    ]}\n    // etc...\n  ]\n\u003c/script\u003e\n\n\u003cToolbar {menu} /\u003e\n```\n**Note**: Any menu item can have an action or children. Probably both, but it shouldn't.\n\n## How does this differ from a CSS Dropdown Menu?\n1. A menu is generated from a nested object rather than annoying hand-crafted HTML\n2. Top-level menus are only expanded when one of the top-level items are clicked.\n3. Top-level menus will stay open until the user clicks outside of the toolbar.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femnudge%2Fsvelte-toolbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femnudge%2Fsvelte-toolbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femnudge%2Fsvelte-toolbar/lists"}