{"id":18685793,"url":"https://github.com/grapesjs/components-navbar","last_synced_at":"2025-04-10T03:52:37.259Z","repository":{"id":57253134,"uuid":"97152697","full_name":"GrapesJS/components-navbar","owner":"GrapesJS","description":"Simple navbar component for the GrapesJS editor","archived":false,"fork":false,"pushed_at":"2024-07-11T11:16:27.000Z","size":202,"stargazers_count":37,"open_issues_count":3,"forks_count":49,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T03:52:31.418Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GrapesJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2017-07-13T18:19:39.000Z","updated_at":"2025-01-22T07:59:48.000Z","dependencies_parsed_at":"2024-06-18T14:06:01.180Z","dependency_job_id":"6fda8398-cf74-4eb8-b9d8-17b4a2e820e0","html_url":"https://github.com/GrapesJS/components-navbar","commit_stats":{"total_commits":44,"total_committers":1,"mean_commits":44.0,"dds":0.0,"last_synced_commit":"902e368c3094c913a0185bd84f1c4df823876b64"},"previous_names":["artf/grapesjs-navbar"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fcomponents-navbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fcomponents-navbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fcomponents-navbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fcomponents-navbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GrapesJS","download_url":"https://codeload.github.com/GrapesJS/components-navbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154998,"owners_count":21056542,"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":[],"created_at":"2024-11-07T10:24:18.066Z","updated_at":"2025-04-10T03:52:37.235Z","avatar_url":"https://github.com/GrapesJS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GrapesJS Navbar\n\nSimple navbar component for GrapesJS editor\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://grapesjs.com/img/navbar.gif\" alt=\"GrapesJS\" align=\"center\"/\u003e\u003c/p\u003e\n\u003cbr/\u003e\n\n# [Demo](http://grapesjs.com/demo.html)\n\n\n## Summary\n\n* Plugin name: `grapesjs-navbar`\n* Blocks: `navbar`\n* Components:\n  * `navbar`, `navbar-container`, `navbar-nav-menu`, `navbar-nav-menu-link`, `navbar-burger-menu`, `navbar-burger-menu-line`\n\n\n\n## Options\n\n| Option | Description | Default |\n|-|-|-\n| `id` | The ID used to create the block and component. | `navbar` |\n| `label` | The label used for the block and the component. | `Navbar` |\n| `block` | Object to extend the default block, eg. `{ category: 'Extra', ... }`. Pass a falsy value to avoid adding the block. | `{}` |\n| `style` | Custom CSS styles for the component. This will replace the default one. | `''` |\n| `styleAdditional` | Additional CSS styles for the component. These will be appended to the default one. | `''` |\n| `classPrefix` | Component class prefix. | `navbar` |\n\n\n\n## Download\n\n* CDN\n  * `https://unpkg.com/grapesjs-navbar`\n* NPM\n  * `npm i grapesjs-navbar`\n* GIT\n  * `git clone https://github.com/GrapesJS/components-navbar.git.git`\n\n\n\n\n\n## Usage\n\nDirectly in the browser\n```html\n\u003clink href=\"path/to/grapes.min.css\" rel=\"stylesheet\"/\u003e\n\u003cscript src=\"path/to/grapes.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/grapesjs-navbar.min.js\"\u003e\u003c/script\u003e\n\n\u003cdiv id=\"gjs\"\u003e\u003c/div\u003e\n\n\u003cscript type=\"text/javascript\"\u003e\n  var editor = grapesjs.init({\n      container : '#gjs',\n      plugins: ['grapesjs-navbar'],\n      pluginsOpts: {\n        'grapesjs-navbar': {/* ...options */}\n      }\n  });\n\u003c/script\u003e\n```\n\nModern javascript\n```js\nimport grapesjs from 'grapesjs';\nimport plugin from 'grapesjs-navbar';\n\nconst editor = grapesjs.init({\n  container : '#gjs',\n  // ...\n  plugins: [plugin],\n  pluginsOpts: {\n    [plugin]: { /* options */ }\n  }\n  // or\n  plugins: [\n    editor =\u003e plugin(editor, { /* options */ }),\n  ],\n});\n```\n\n\n\n\n## Development\n\nClone the repository\n\n```sh\n$ git clone https://github.com/GrapesJS/components-navbar.git.git\n$ cd grapesjs-navbar\n```\n\nInstall it\n\n```sh\n$ npm i\n```\n\nStart the dev server\n\n```sh\n$ npm start\n```\n\nBuild before the commit. This will also increase the patch level version of the package\n\n```sh\n$ npm run build\n```\n\n\n\n\n## License\n\nBSD 3-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapesjs%2Fcomponents-navbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrapesjs%2Fcomponents-navbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapesjs%2Fcomponents-navbar/lists"}