# grapesjs-navbar

> Simple navbar component for GrapesJS editor

Latest version **1.0.2** (published 2023-06-08) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install grapesjs-navbar
pnpm add grapesjs-navbar
yarn add grapesjs-navbar
bun add grapesjs-navbar
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-06-08 |
| First published | 2017-07-13 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 28.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 38 |
| Author | Artur Arseniev |
| Maintainers | artf |
| Keywords | grapesjs, navbar, plugin, wysiwyg |

## Links

- npm: https://www.npmjs.com/package/grapesjs-navbar
- Repository: https://github.com/GrapesJS/components-navbar
- Homepage: https://github.com/GrapesJS/components-navbar#readme
- Issues: https://github.com/GrapesJS/components-navbar/issues
- npm.io page: https://npm.io/package/grapesjs-navbar

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 1.0.2 (latest) — 2023-06-08
- 1.0.1 — 2022-09-19
- 0.1.5 — 2018-04-15
- 0.1.3 — 2017-11-19
- 0.0.5 — 2017-07-13

## README

# GrapesJS Navbar

Simple navbar component for GrapesJS editor

<p align="center"><img src="https://grapesjs.com/img/navbar.gif" alt="GrapesJS" align="center"/></p>
<br/>

# [Demo](http://grapesjs.com/demo.html)


## Summary

* Plugin name: `grapesjs-navbar`
* Blocks: `navbar`
* Components:
  * `navbar`, `navbar-container`, `navbar-nav-menu`, `navbar-nav-menu-link`, `navbar-burger-menu`, `navbar-burger-menu-line`



## Options

| Option | Description | Default |
|-|-|-
| `id` | The ID used to create the block and component. | `navbar` |
| `label` | The label used for the block and the component. | `Navbar` |
| `block` | Object to extend the default block, eg. `{ category: 'Extra', ... }`. Pass a falsy value to avoid adding the block. | `{}` |
| `style` | Custom CSS styles for the component. This will replace the default one. | `''` |
| `styleAdditional` | Additional CSS styles for the component. These will be appended to the default one. | `''` |
| `classPrefix` | Component class prefix. | `navbar` |



## Download

* CDN
  * `https://unpkg.com/grapesjs-navbar`
* NPM
  * `npm i grapesjs-navbar`
* GIT
  * `git clone https://github.com/GrapesJS/components-navbar.git.git`





## Usage

Directly in the browser
```html
<link href="path/to/grapes.min.css" rel="stylesheet"/>
<script src="path/to/grapes.min.js"></script>
<script src="path/to/grapesjs-navbar.min.js"></script>

<div id="gjs"></div>

<script type="text/javascript">
  var editor = grapesjs.init({
      container : '#gjs',
      plugins: ['grapesjs-navbar'],
      pluginsOpts: {
        'grapesjs-navbar': {/* ...options */}
      }
  });
</script>
```

Modern javascript
```js
import grapesjs from 'grapesjs';
import plugin from 'grapesjs-navbar';

const editor = grapesjs.init({
  container : '#gjs',
  // ...
  plugins: [plugin],
  pluginsOpts: {
    [plugin]: { /* options */ }
  }
  // or
  plugins: [
    editor => plugin(editor, { /* options */ }),
  ],
});
```




## Development

Clone the repository

```sh
$ git clone https://github.com/GrapesJS/components-navbar.git.git
$ cd grapesjs-navbar
```

Install it

```sh
$ npm i
```

Start the dev server

```sh
$ npm start
```

Build before the commit. This will also increase the patch level version of the package

```sh
$ npm run build
```




## License

BSD 3-Clause

---
_Source: https://npm.io/package/grapesjs-navbar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
