\n`
+`ariaLabel` | Defines a string value that labels the current element. | `breadcrumbs`
+`attributes(array $value)` | HTML attributes for the widget container nav tag. | `[]`
+`autoIdPrefix(string $value)` | Prefix to the automatically generated widget ID. | `w`
+`encode()` | Enable/Disable encoding for labels. | `false`
+`homeItem(?array $value)` | The first item in the breadcrumbs (called home link). | `['label' => 'Home', 'url' => '/']`
+`id(string $value)` | Widget ID. | `''`
+`items(array $value)` | List of items to appear in the breadcrumbs. | `[]`
+`itemsAttributes(array $value)` | HTML attributes for the items widget. | `[]`
+`itemTemplate(string $value)` | Template used to render each inactive item in the breadcrumbs. | `
{icon}{link}
\n`
+
+### Items structure is an array of the following structure
+
+```php
+[
+ [
+ 'label' => 'Home',
+ 'url' => '/',
+ 'template' => '
',
+ 'encode' => true,
+ 'icon' => 'fas fa-home',
+ 'iconAttributes' => ['class' => 'icon'],
+ ],
+]
+```
diff --git a/docs/dropdown.md b/docs/guide/en/dropdown.md
similarity index 100%
rename from docs/dropdown.md
rename to docs/guide/en/dropdown.md
diff --git a/docs/menu.md b/docs/guide/en/menu.md
similarity index 100%
rename from docs/menu.md
rename to docs/guide/en/menu.md
diff --git a/docs/message.md b/docs/guide/en/message.md
similarity index 97%
rename from docs/message.md
rename to docs/guide/en/message.md
index 28823d6..8ed6786 100644
--- a/docs/message.md
+++ b/docs/guide/en/message.md
@@ -1,6 +1,6 @@
# Message widget
-### [The message component](https://bulma.io/documentation/components/message/) displays a message like the following:
+### [The message component](https://bulma.io/documentation/components/message/) displays a message like the following
@@ -20,9 +20,6 @@ necessary JavaScript. Alternatively, you can use your own JavaScript code.
```php
-
+
## Usage
```php
The modal structure:
+
- `modal`: the main container
- - `modal-background`: a transparent overlay that can act as a click target to close the modal
- - `modal-card`: ...
- - `modal-card-head`: ...
- - `modal-card-title`: ...
- - `modal-card-body`: ...
- - `modal-card-foot`: ...
+ - `modal-background`: a transparent overlay that can act as a click target to close the modal
+ - `modal-card`: ...
+ - `modal-card-head`: ...
+ - `modal-card-title`: ...
+ - `modal-card-body`: ...
+ - `modal-card-foot`: ...
## Usage
```php
@@ -33,9 +33,6 @@ You can use Navbar the following way:
```php
@@ -11,9 +11,6 @@
```php
@@ -11,9 +11,6 @@
```php
{icon}{link}\n`
-### Items structure is an array of the following structure:
+### Items structure is an array of the following structure
```php
[
diff --git a/docs/guide/pt-BR/dropdown.md b/docs/guide/pt-BR/dropdown.md
new file mode 100644
index 0000000..186a40c
--- /dev/null
+++ b/docs/guide/pt-BR/dropdown.md
@@ -0,0 +1,118 @@
+# Dropdown widget
+
+### [The dropdown component](https://bulma.io/documentation/components/dropdown/) is a container for a dropdown button and a dropdown menu.
+
+
+
+
+
+
+HTML generated consists of:
+
+- `dropdown` the main container.
+- `dropdown-trigger` the container for a button.
+- `dropdown-menu` the toggleable menu, hidden by default.
+- `dropdown-content` the dropdown box, with a white background and a shadow.
+- `dropdown-item` each single item of the dropdown, which can either be a a or a div.
+- `dropdown-divider` a horizontal line to separate dropdown items.
+
+## Usage
+
+```php
+/**
+ * @var Yiisoft\Assets\AssetManager $assetManager
+ * @var Yiisoft\View\WebView $this
+ */
+
+/* Register assets in view */
+
+$assetManager->registerMany([
+ BulmaAsset::class,
+ BulmaJsAsset::class
+]);
+
+$this->setCssFiles($assetManager->getCssFiles());
+$this->setJsFiles($assetManager->getJsFiles());
+?>
+
+= Dropdown::widget()
+ ->buttonLabel('Russian cities')
+ ->items([
+ ['label' => 'San petesburgo', 'url' => '#'],
+ ['label' => 'Moscu', 'url' => '#'],
+ ['label' => 'Novosibirsk', 'url' => '#'],
+ '-',
+ ['label' => 'Ekaterinburgo', 'url' => '#'],
+ ])
+ ->render();
+?>
+```
+
+The code above generates the following HTML:
+
+```html
+
+```
+
+## Setters
+
+All setters are immutable and return a new instance of the `Yiisoft\Yii\Bulma\Dropdown` class with the specified value.
+
+Method | Description | Default
+-------|-------------|---------
+`attributes(array $value)` | Sets the HTML attributes for the dropdown container. | `[]`
+`autoIdPrefix(string $value)` | Prefix to the automatically generated widget ID. | `w`
+`buttonAttributes(array $values)` | The HTML attributes for the dropdown button. | `[]`
+`buttonIconAttributes(array $values)` | The HTML attributes for the dropdown button icon. | `['class' => 'icon is-small']`
+`buttonIconCssClass(string $value)` | Set icon CSS class for the dropdown button. | `''`
+`buttonIconText(string $value)` | Set icon text for the dropdown button. | `'↓'`
+`buttonLabel(string $value)` | Set label for the dropdown button. | `'Click Me'`
+`buttonLabelAttributes(array $values)` | The HTML attributes for the dropdown button label. | `[]`
+`contentCssClass(string $value)` | Set CSS class for dropdown content. | `'dropdown-content'`
+`cssClass(string $value)` | Set CSS class for the dropdown container. | `'dropdown'`
+`dividerCssClass(string $value)` | Set CSS class for horizontal line separating dropdown items. | `'dropdown-divider'`
+`enclosedByContainer(bool $value = false)` | Whether the widget should be enclosed by a container. | `true`
+`id(string $value)` | Set the ID of the dropdown. | `''`
+`itemActiveCssClass(string $value)` | Set CSS class for active dropdown item. | `'is-active'`
+`itemCssClass(string $value)` | Set CSS class for dropdown item. | `'dropdown-item'`
+`itemDisabledStyleCss(string $value)` | Set Style attributes for disabled dropdown item. | `'opacity:.65;pointer-events:none;'`
+`itemHeaderCssClass(string $value)` | Set CSS class for dropdown item header. | `'dropdown-header'`
+`items(array $value)` | Set the dropdown items. | `[]`
+`menuCssClass(string $value)` | Set CSS class for dropdown menu. | `'dropdown-menu'`
+`submenu(bool $value)` | Set whether the dropdown is a submenu. | `false`
+`submenuAttributes(array $values)` | The HTML attributes for the dropdown submenu. | `[]`
+`triggerCssClass(string $value)` | Set CSS class for dropdown trigger. | `'dropdown-trigger'`
+
+### Items structure is an array of the following structure:
+
+```php
+[
+ [
+ 'label' => '',
+ 'url' => '',
+ 'urlAttributes' => [],
+ 'iconText' => '',
+ 'iconCssClass' => '',
+ 'iconAttributes' => [],
+ 'active' => false,
+ 'disabled' => false,
+ 'enclose' => false,
+ 'submenu' => false,
+ ],
+]
diff --git a/docs/guide/pt-BR/menu.md b/docs/guide/pt-BR/menu.md
new file mode 100644
index 0000000..21c0cf3
--- /dev/null
+++ b/docs/guide/pt-BR/menu.md
@@ -0,0 +1,138 @@
+# Menu widget
+
+### [The Bulma menu](https://bulma.io/documentation/components/menu/) is a vertical navigation component.
+
+
+
+
+
+
+HTML generated consists of:
+- The `menu` container.
+- Informative `menu-label` labels.
+- Interactive `menu-list` lists that can be nested up to 2 levels.
+
+## Usage
+
+```php
+/**
+ * @var Yiisoft\Assets\AssetManager $assetManager
+ * @var Yiisoft\View\WebView $this
+ */
+
+use Yiisoft\Yii\Bulma\Asset\BulmaAsset;
+use Yiisoft\Yii\Bulma\Menu;
+
+/* Register assets in view */
+
+$assetManager->register(BulmaAsset::class);
+
+$this->setCssFiles($assetManager->getCssFiles());
+$this->setJsFiles($assetManager->getJsFiles());
+?>
+
+= Menu::widget()
+ ->brand(
+ '
' . "\n" . '
' . "\n" .
+ 'Brand Example' . "\n" . '
' . "\n" . '
'
+ )
+ ->currentPath('site/index')
+ ->items([
+ ['label' => 'General',
+ 'items' => [
+ [
+ 'label' => 'Dashboard',
+ 'url' => 'site/index',
+ 'icon' => 'mdi mdi-desktop-mac',
+ 'iconAttributes' => ['class' => 'icon']
+ ],
+ [
+ 'label' => 'Logout',
+ 'url' => 'site/logout',
+ 'icon' => 'mdi mdi-logout',
+ 'iconAttributes' => ['class' => 'icon']
+ ],
+ ]
+ ],
+ ['label' => 'Users',
+ 'items' => [
+ ['label' => 'Manager', 'url' => 'user/index'],
+ ['label' => 'Export', 'url' => 'user/export']
+ ]
+ ],
+ ])
+ ->render() ?>
+```
+
+HTML produced is like the following:
+
+```html
+
+```
+
+Method | Description | Default
+-------|-------------|---------
+`activateParents()` | Whether to activate parent menu items when one of the corresponding child menu items is active. | `true`
+`activeCssClass(string $value)` | The CSS class to be appended to the active menu item. | `is-active`
+`autoIdPrefix(string $value)` | Prefix to the automatically generated widget ID. | `w`
+`attributes(array $value)` | HTML attributes for the widget container nav tag. | `[]`
+`brand(string $value)` | Custom brand content. | `''`
+`currentPath(string $value)` | Allows you to assign the current path of the URL from request controller. | `''`
+`deactivateItems()` | Disable active items according to their current path. | `false`
+`firstItemCssClass(string $value)` | The CSS class for the first item in the main menu or each submenu. | `''`
+`hiddenEmptyItems()` | Whether to hide empty menu items. | `false`
+`id(string $value)` | Widget ID. | `''`
+`itemAttributes(array $value)` | List of HTML attributes shared by all menu. | `[]`
+`items(array $value)` | List of menu items. | `[]`
+`itemsTag(?string $value)` | Tag name of the container element, `null` value means that container tag will not be rendered. | `ul`
+`labelTemplate(string $value)`| The template used to render the body of a menu which is NOT a link. | `''`
+`lastItemCssClass(string $value)` | The CSS class that will be assigned to the last item in the main menu or each submenu. | `''`
+`subMenuTemplate(string $value)` | The template used to render a list of sub-menus. | `
\n{items}\n
`
+`urlTemplate(string $value)` | The template used to render the body of a menu which is a link. | `{icon}{label}`
+
+### Items structure is an array of the following structure:
+
+```php
+[
+ [
+ 'label' => '',
+ 'labelTemplate' => '',
+ 'url' => '',
+ 'urlAttributes' => [],
+ 'urlTemplate' => '',
+ 'items' => [],
+ 'itemAtrributes' => [],
+ 'icon' => '',,
+ 'iconAttributes' => [],
+ 'active' => false,
+ 'submenuTemplate' => '',
+ 'encode' => false,
+ 'visible' => true,
+ ],
+]
diff --git a/docs/guide/pt-BR/message.md b/docs/guide/pt-BR/message.md
new file mode 100644
index 0000000..8ed6786
--- /dev/null
+++ b/docs/guide/pt-BR/message.md
@@ -0,0 +1,79 @@
+# Message widget
+
+### [The message component](https://bulma.io/documentation/components/message/) displays a message like the following
+
+
+
+
+
+
+HTML generated consists of:
+
+- A `message` container.
+- An optional `message-header` that can hold a title, and a "delete" element.
+- A `message-body` for the longer body of the message.
+
+In order for the message to be close-able you can use the asset `BulmaJsAsset::class`, which registers
+necessary JavaScript. Alternatively, you can use your own JavaScript code.
+
+## Usage
+
+```php
+registerMany([
+ BulmaAsset::class,
+ BulmaJsAsset::class,
+]);
+
+$this->setCssFiles($assetManager->getCssFiles());
+$this->setJsFiles($assetManager->getJsFiles());
+?>
+
+= Message::widget()
+ ->attributes(['class' => 'has-text-justified'])
+ ->body('Holy guacamole! You should check in on some of those fields below.')
+ ->headerColor('is-success')
+ ->headerMessage('Very important')
+ ->size('is-large') ?>
+```
+
+The code above generates the following HTML:
+
+```html
+
+
+
Very important
+
+
+
+ Holy guacamole! You should check in on some of those fields below.
+
+
+```
+
+## Setters
+
+All setters are immutable and return a new instance of the `Yiisoft\Yii\Bulma\Message` class with the specified value.
+
+Method | Description | Default
+-------|-------------|---------
+`attributes(array $value)` | The HTML attributes | `[]`
+`autoIdPrefix(string $value)` | Prefix to the automatically generated widget ID. | `w`
+`body(string $value)` | Message body. | `''`
+`bodyAttributes(array $value)` | HTML attributes for the body tag. | `[]`
+`bodyCssClass(string $value)` | CSS class for the body container. | `''`
+`closeButtonAttributes(array $value)`| HTML attributes for rendering the close button tag. | `[]`
+`encode()` | Enable/Disable encoding for labels. | `false`
+`headerAttributes(array $value)` | HTML attributes for the header tag. | `[]`
+`headerColor(string $value)` | Message color. Options available are: (`Message::COLOR_DARK`, `Message::COLOR_PRIMARY`, `Message::COLOR_LINK`, `Message::COLOR_INFO`, `Message::COLOR_SUCCESS`, `Message::COLOR_WARNING`, `Message::COLOR_DANGER`). | `Message::COLOR_DARK`
+`headerMessage(string $value)` | Message header. | `''`
+`id(string $value)` | Widget ID. | `''`
+`size(string $value)` | Message widget size. Default is normal. Options available are: (`Message::SIZE_SMALL`, `Message::SIZE_MEDIUM`, `Message::SIZE_LARGE`. | `normal`
+`withoutCloseButton(bool $value)` | Whether the close button is disabled. | `false`
+`withoutHeader(bool $value)` | Whether the header is disabled. | `false`
diff --git a/docs/guide/pt-BR/modal.md b/docs/guide/pt-BR/modal.md
new file mode 100644
index 0000000..f289146
--- /dev/null
+++ b/docs/guide/pt-BR/modal.md
@@ -0,0 +1,137 @@
+# Modal widget
+
+A base [modal](https://bulma.io/documentation/components/modal/) overlay, in which you can include any content you want
+
+The modal structure:
+
+- `modal`: the main container
+ - `modal-background`: a transparent overlay that can act as a click target to close the modal
+ - `modal-content`: a horizontally and vertically centered container, in which you can include any content
+ - `modal-close`: a simple cross located in the top right corner
+
+
+
+
+
+
+## Usage
+
+```php
+register(BulmaAsset::class);
+
+$this->setCssFiles($assetManager->getCssFiles());
+$this->setJsFiles($assetManager->getJsFiles());
+
+// Note: Bulma does not include any JavaScript interaction. You will have to implement the class toggle yourself.
+// Example of a toggle:
+$modalJS = << 0) {
+ $modalButtons.forEach(function ($el) {
+ $el.addEventListener('click', function () {
+ var target = $el.dataset.target;
+ openModal(target);
+ });
+ });
+ }
+
+ if ($modalCloses.length > 0) {
+ $modalCloses.forEach(function ($el) {
+ $el.addEventListener('click', function () {
+ closeModals();
+ });
+ });
+ }
+
+ function openModal(target) {
+ var $target = document.getElementById('modal');
+ rootEl.classList.add('is-clipped');
+ $target.classList.add('is-active');
+ }
+
+ function closeModals() {
+ rootEl.classList.remove('is-clipped');
+ $modals.forEach(function ($el) {
+ $el.classList.remove('is-active');
+ });
+ }
+
+ function getAll(selector) {
+ var parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
+
+ return Array.prototype.slice.call(parent.querySelectorAll(selector), 0);
+ }
+
+ document.addEventListener('keydown', function (event) {
+ var e = event || window.event;
+
+ if (e.keyCode === 27) {
+ closeModals();
+ closeDropdowns();
+ }
+ });
+JS;
+
+$this->registerJs($modalJS);
+?>
+
+= Modal::widget()
+ ->id('modal')
+ ->begin() .
+ Div::tag()
+ ->class('box')
+ ->content('Say hello...')
+ ->render() . PHP_EOL .
+ Modal::end() ?>
+```
+
+The code above generates the following HTML:
+
+```html
+
+
+
+
+
+
Say hello...
+
+
+```
+
+## Setters
+
+All setters are immutable and return a new instance of the `Yiisoft\Yii\Bulma\Modal` class with the specified value.
+
+Method | Description | Default
+-------|-------------|---------
+`attributes(array $value)` | The HTML attributes. | `[]`
+`autoIdPrefix(string $value)` | Prefix to the automatically generated widget ID. | `w`
+`backgroundClass(string $value)` | Class for the modal background. | `modal-background`
+`buttonClass(string $value)` | Class for the modal button. | `button modal-button`
+`closeButtonAttributes(array $value)` | HTML attributes for the close button tag. | [`class` => `modal-close`, `aria-label` => `close`]
+`closeButtonSize(string $value)` | Close button size. Options available are: (`Modal::SIZE_SMALL`, `Modal::SIZE_MEDIUM`, `Modal::SIZE_LARGE`). | Default size is normal.
+`contentAttributes(array $value)`| HTML attributes for the content tag. | `[]`
+`contentClass(string $value)` | Class for the modal content. | `modal-content`
+`id(string $value)` | Widget ID. | `''`
+`modalClass(string $value)` | Class for the modal. | `modal`
+`toggleButtonAttributes(array $value)` | HTML attributes for the toogle button tag. | [`class` => `button`, `aria-haspopup` => `true`]
+`toggleButtonColor(string $value)` | Toggle button color. Options available are: (`Modal::COLOR_PRIMARY`, `Modal::COLOR_LINK`, `Modal::COLOR_INFO`, `Modal::COLOR_SUCCESS`, `Modal::COLOR_WARNING`, `Modal::COLOR_DANGER`, `Modal::COLOR_DARK`). | Default setting empty whitout color.
+`toggleButtonLabel(string $value)` | Toggle button label, | `Toggle button`
+`toggleButtonSize(string $value)` | Size toggle button. Options available are: (`Modal::SIZE_SMALL`, `Modal::SIZE_MEDIUM`, `Modal::SIZE_LARGE`). | Default setting empty normal.
+`withoutCloseButton(bool $value)` | Whether the close button is disabled. | `false`
+`withoutToggleButton(bool $value)` | Whether the toggle button is disabled. | `false`
diff --git a/docs/guide/pt-BR/modalcard.md b/docs/guide/pt-BR/modalcard.md
new file mode 100644
index 0000000..d593942
--- /dev/null
+++ b/docs/guide/pt-BR/modalcard.md
@@ -0,0 +1,127 @@
+# Modal card widget
+
+### A classic [modal](https://bulma.io/documentation/components/modal/) overlay, in which you can include any content you want
+
+
+```
+
+## Setters
+
+All setters are immutable and return a new instance of the `Yiisoft\Yii\Bulma\ModalCard` class with the specified value.
+
+Method | Description | Default
+-------|-------------|---------
+`attributes(array $value)` | The HTML attributes. | `[]`
+`autoIdPrefix(string $value)` | Prefix to the automatically generated widget ID. | `w`
+`backgroundClass(string $value)` | The class for the modal background. | `modal-background`
+`bodyAttributes(array $value)` | HTML attributes for the body tag.| []
+`bodyClass(string $value)` | The class for the modal body. | `modal-card-body`
+`buttonClass(string $value)` | The class for the modal button. | `button modal-button`
+`cardAttributes(array $value)` | HTML attributes for the card. | []
+`cardClass(string $value)` | The class for the modal card. | `modal-card`
+`closeButtonAttributes(array $value)` | HTML attributes for the close button. | []
+`closeButtonCssClass(string $value)` | The class for the close button. | `button delete`
+`closeButtonSize(string $value)` | Сlose button size. Options available are: (`ModalCard::SIZE_SMALL`, `ModalCard::SIZE_MEDIUM`, `ModalCard::SIZE_LARGE`). | Default setting is "normal".
+`contentClass(string $value)` | The class for the modal card content. | `modal-card-content`
+`footer(string $value)` | The footer content. | `''`
+`footerAttributes(array $value)` | HTML attributes for the footer. | []
+`footerClass(string $value)` | The class for the modal card footer. | `modal-card-foot`
+`headerAttributes(array $value)` | HTML attributes for the header. | []
+`headerClass(string $value)` | The class for the modal card header. | `modal-card-head`
+`id(string $value)` | Widget ID. | `''`
+`title(string $value)` | The title content. | `''`
+`titleAttributes(array $value)` | HTML attributes for the title. | []
+`titleClass(string $value)` | The class for the modal card title. | `modal-card-title`
+`toggleButtonAttributes(array $value)` | HTML attributes for the toggle button. | []
+`toggleButtonColor(string $value)` | Toggle button color. Options available are: (`ModalCard::COLOR_PRIMARY`, `ModalCard::COLOR_INFO`, `ModalCard::COLOR_SUCCESS`, `ModalCard::COLOR_WARNING`, `ModalCard::COLOR_DANGER`, `ModalCard::COLOR_DARK`). | `''`
+`toggleButtonId(?string $value)` | Toggle button ID. | `''`
+`toggleButtonLabel(string $value)` | Toggle button label. | `'Toggle button'`
+`toggleButtonSize(string $value)` | Toggle button size. Options available are: (`ModalCard::SIZE_SMALL`, `ModalCard::SIZE_MEDIUM`, `ModalCard::SIZE_LARGE`). | Default setting is "normal".
+`withoutCloseButton(bool $value)` | Whether the close button is disabled. | `false`
+`withoutToggleButton(bool $value)` | Whether the toggle button is disabled. | `false`
diff --git a/docs/guide/pt-BR/navbar.md b/docs/guide/pt-BR/navbar.md
new file mode 100644
index 0000000..98b4ca3
--- /dev/null
+++ b/docs/guide/pt-BR/navbar.md
@@ -0,0 +1,184 @@
+# Navbar and nav widget
+
+### [The navbar component](https://bulma.io/documentation/components/navbar/) is a responsive and versatile horizontal navigation bar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+HTML generated consists of:
+
+- `navbar` the main container.
+- `navbar-brand` the left side, always visible, which usually contains the logo and optionally some links or icons.
+- `navbar-burger` the hamburger icon, which toggles the navbar menu on touch devices.
+- `navbar-menu` the right side, hidden on touch devices, visible on a desktop.
+- `navbar-start` the left part of the menu, which appears next to the navbar brand on desktop.
+- `navbar-end` the right part of the menu, which appears at the end of the navbar.
+- `navbar-item` each single item of the navbar, which can either be an a or a div.
+
+## Usage
+
+You can use Navbar the following way:
+
+```php
+registerMany([
+ BulmaAsset::class,
+ BulmaJsAsset::class
+]);
+
+$this->setCssFiles($assetManager->getCssFiles());
+$this->setJsFiles($assetManager->getJsFiles());
+?>
+
+// The Font-Awesome Asset must be added, in this case we are going to use an external library.
+
+
+= NavBar::widget()
+ ->attributes(['class' => 'is-black', 'data-sticky' => '', 'data-sticky-shadow' => ''])
+ ->brandImage('yii-logo.jpg')
+ ->brandText('My Project')
+ ->brandUrl('/')
+ ->begin()
+?>
+
+= Nav::widget()
+ ->enclosedByEndMenu()
+ ->items([
+ [
+ 'label' => 'Setting Account',
+ 'url' => '/setting/account',
+ 'icon' => 'fas fa-user-cog',
+ 'iconAttributes' => ['class' => 'icon']
+ ],
+ [
+ 'label' => 'Profile',
+ 'url' => '/profile',
+ 'icon' => 'fas fa-users',
+ 'iconAttributes' => ['class' => 'icon']
+ ],
+ [
+ 'label' => 'Admin' . Html::img(
+ '../../docs/images/icon-avatar.png',
+ ['class' => 'img-rounded', 'aria-expanded' => 'false']
+ ),
+ 'items' => [
+ ['label' => 'Logout', 'url' => '/auth/logout'],
+ ],
+ 'encode' => false
+ ]
+ ])
+ ->render()
+?>
+
+= NavBar::end() ?>
+```
+
+The code above generates the following HTML:
+
+```html
+
+```
+
+## Setters
+
+All setters are immutable and return a new instance of the `Yiisoft\Yii\Bulma\NavBar` class with the specified value.
+
+Method | Description | Default
+-------|-------------|---------
+`ariaLabel(string $value)` | The ARIA label of the navbar. | `'main navigation'`
+`attributes(array $values)` | HTML attributes for the widget container nav. | `[]`
+`autoIdPrefix(string $value)` | Prefix to the automatically generated widget ID. | `w`
+`brandAttributes(array $values)` | HTML attributes for the navbar brand. | `[]`
+`brandCssClass(string $value)` | CSS class for the navbar brand. | `'navbar-brand'`
+`brandImage(string $value)` | Image for the navbar brand. | `''`
+`brandImageAttributes(array $values)` | HTML attributes for the navbar brand image. | `[]`
+`brandText(string $value)` | Text for the navbar brand. | `''`
+`brandTextAttributes(array $values)` | HTML attributes for the navbar brand text. | `[]`
+`brandUrl(string $value)` | URL for the navbar brand. | `''`
+`burgerAttributes(array $values)` | HTML attributes for the navbar burger. | `[]`
+`burgerCssClass(string $value)` | CSS class for the navbar burger. | `'navbar-burger'`
+`buttonLinkAriaExpanded(string $value)` | The ARIA expanded attribute of the button link. | `'false'`
+`buttonLinkAriaLabelText(string $value)` | The ARIA label text of the button link. | `'menu'`
+`buttonLinkContent(string $value)` | The content of the button link. | `''`
+`buttonLinkRole(string $value)` | The role of the button link. | `'button'`
+`cssClass(string $value)` | CSS class for the navbar. | `'navbar'`
+`id(string $value)` | Set the ID of the navbar. | `''`
+`itemCssClass(string $value)` | CSS class for the navbar item. | `'navbar-item'`
+`role(string $value)` | The role of the navbar. | `'navigation'`
+
+All setters are immutable and return a new instance of the `Yiisoft\Yii\Bulma\Nav` class with the specified value.
+
+Method | Description | Default
+-------|-------------|---------
+`activateParents()` | Activate parent menu items when the current menu item is activated. | `false`
+`attributes(array $values)` | HTML attributes for the widget container | `[]`
+`currentPath(string $value)` | Allows you to assign the current path of the url from request controller. | `''`
+`enclosedByEndMenu()` | Align the menu items to the right. | `false`
+`enclosedByStartMenu()` | Align the menu items to the left. | `false`
+`items(array $value)` | The menu items. | `[]`
+`withoutActivateItems()` | Disable activate items according to whether their currentPath. | `false`
+
+### Items structure is an array of the following structure
+
+```php
+[
+ [
+ 'label' => '',
+ 'url' => '',
+ 'urlAttributes' => [],
+ 'dropdownAttributes' => [],
+ 'iconText' => '',
+ 'iconCssClass' => '',
+ 'iconAttributes' => [],
+ 'items' => [],
+ 'active' => false,
+ 'disable' => false,
+ 'visible' => false,
+ 'encode' => false,
+ ],
+]
diff --git a/docs/guide/pt-BR/panel.md b/docs/guide/pt-BR/panel.md
new file mode 100644
index 0000000..ca2f6db
--- /dev/null
+++ b/docs/guide/pt-BR/panel.md
@@ -0,0 +1,156 @@
+# Panel widget
+
+### A composable [panel](https://bulma.io/documentation/components/panel/), for compact controls
+
+