# Bootstrap 6 API reference

> API reference of the Bootstrap 6 extension (yii2\extensions\bootstrap6), generated from its PHPDoc.

[API reference](/docs/api/index.md) › Bootstrap 6

Classes, interfaces, traits and enums of `yii2\extensions\bootstrap6`, generated from the PHPDoc of [yii2-extensions/bootstrap6](https://github.com/yii2-extensions/bootstrap6) at `main`. Machine-readable catalog: [bootstrap6.json](https://yii2-framework.github.io/docs/reference/bootstrap6.json).

## Namespaces

| Namespace | Types |
| --- | --- |
| [`yii2\extensions\bootstrap6\asset`](/docs/extensions/bootstrap6/reference/asset/index.md) | 4 |
| [`yii2\extensions\bootstrap6\enum`](/docs/extensions/bootstrap6/reference/enum/index.md) | 11 |
| [`yii2\extensions\bootstrap6\exception`](/docs/extensions/bootstrap6/reference/exception/index.md) | 1 |
| [`yii2\extensions\bootstrap6\item`](/docs/extensions/bootstrap6/reference/item/index.md) | 9 |

## Classes

| Class | Summary |
| --- | --- |
| [`Accordion`](/docs/extensions/bootstrap6/reference/accordion/index.md) | Renders a Bootstrap accordion built on native `<details>` and `<summary>` elements. |
| [`ActiveField`](/docs/extensions/bootstrap6/reference/activefield/index.md) | Renders a Bootstrap 6 form field for the layouts of [`ActiveForm`](/docs/extensions/bootstrap6/reference/activeform/index.md). |
| [`ActiveForm`](/docs/extensions/bootstrap6/reference/activeform/index.md) | Renders a Bootstrap 6 form with default, horizontal, inline, or floating-label field layouts. |
| [`Alert`](/docs/extensions/bootstrap6/reference/alert/index.md) | Renders a Bootstrap alert with an optional heading and a dismiss button handled by the `Alert` plugin. |
| [`Avatar`](/docs/extensions/bootstrap6/reference/avatar/index.md) | Renders a Bootstrap avatar with an image or initials and an optional status indicator. |
| [`Badge`](/docs/extensions/bootstrap6/reference/badge/index.md) | Renders a Bootstrap badge for counts, labels, and status indicators. |
| [`BaseHtml`](/docs/extensions/bootstrap6/reference/basehtml/index.md) abstract | Provides the Bootstrap 6 implementation of [`Html`](/docs/extensions/bootstrap6/reference/html/index.md). |
| [`Bootstrap`](/docs/extensions/bootstrap6/reference/bootstrap/index.md) final | Registers the `yii.bootstrap6` message source when the application does not configure it. |
| [`Breadcrumbs`](/docs/extensions/bootstrap6/reference/breadcrumbs/index.md) | Renders a Bootstrap breadcrumb trail with explicit `.breadcrumb-divider` elements between the items. |
| [`Button`](/docs/extensions/bootstrap6/reference/button/index.md) | Renders a Bootstrap button, optionally as a toggle button handled by the `Button` plugin. |
| [`ButtonGroup`](/docs/extensions/bootstrap6/reference/buttongroup/index.md) | Renders a Bootstrap button group from HTML strings and [`Button`](/docs/extensions/bootstrap6/reference/button/index.md) configurations. |
| [`ButtonMenu`](/docs/extensions/bootstrap6/reference/buttonmenu/index.md) | Renders a button that toggles a [`Menu`](/docs/extensions/bootstrap6/reference/menu/index.md), or a split button group with a separate menu toggle. |
| [`ButtonToolbar`](/docs/extensions/bootstrap6/reference/buttontoolbar/index.md) | Renders a Bootstrap button toolbar from HTML strings and [`ButtonGroup`](/docs/extensions/bootstrap6/reference/buttongroup/index.md) configurations. |
| [`Carousel`](/docs/extensions/bootstrap6/reference/carousel/index.md) | Renders a Bootstrap carousel with optional previous/next controls, play/pause control, and indicators. |
| [`Chips`](/docs/extensions/bootstrap6/reference/chips/index.md) | Renders a Bootstrap chip input: a `.chip-input` container with the initial chips, a `.form-ghost` text input and a hidden input that submits the chip values. |
| [`Collapse`](/docs/extensions/bootstrap6/reference/collapse/index.md) | Renders a Bootstrap collapsible element, optionally preceded by a toggle button. |
| [`Combobox`](/docs/extensions/bootstrap6/reference/combobox/index.md) | Renders a Bootstrap combobox: a `.combobox-toggle` button followed by a `.menu` of selectable items. |
| [`Datepicker`](/docs/extensions/bootstrap6/reference/datepicker/index.md) | Renders a Bootstrap datepicker as a text input, or as an inline calendar bound to a hidden input. |
| [`Dialog`](/docs/extensions/bootstrap6/reference/dialog/index.md) | Renders a Bootstrap dialog on the native `<dialog>` element, optionally preceded by a toggle button. |
| [`Drawer`](/docs/extensions/bootstrap6/reference/drawer/index.md) | Renders a Bootstrap drawer on the native `<dialog>` element, optionally preceded by a toggle button. |
| [`Html`](/docs/extensions/bootstrap6/reference/html/index.md) final | Provides HTML helpers that render Bootstrap 6 markup. |
| [`IconSet`](/docs/extensions/bootstrap6/reference/iconset/index.md) final | Provides the default SVG icons rendered by the widgets and lets applications replace them through the DI container. |
| [`InputWidget`](/docs/extensions/bootstrap6/reference/inputwidget/index.md) abstract | Provides the base class for Bootstrap 6 form input widgets. |
| [`LinkPager`](/docs/extensions/bootstrap6/reference/linkpager/index.md) | Renders Bootstrap pagination links for a [`Pagination`](/docs/api/yii/data/pagination/index.md) object. |
| [`Menu`](/docs/extensions/bootstrap6/reference/menu/index.md) | Renders the Bootstrap `.menu` panel with links, buttons, headers, dividers, text, and nested submenus. |
| [`Nav`](/docs/extensions/bootstrap6/reference/nav/index.md) | Renders a Bootstrap nav with links, active state detection by route, and items that toggle a [`Menu`](/docs/extensions/bootstrap6/reference/menu/index.md). |
| [`NavBar`](/docs/extensions/bootstrap6/reference/navbar/index.md) | Renders a Bootstrap navbar whose content collapses into a drawer below the [`$expand`](/docs/extensions/bootstrap6/reference/navbar/index.md#property-expand) breakpoint. |
| [`NavOverflow`](/docs/extensions/bootstrap6/reference/navoverflow/index.md) | Renders a [`Nav`](/docs/extensions/bootstrap6/reference/nav/index.md) inside a `.nav-overflow` wrapper that moves the items that do not fit into a "More" menu. |
| [`OtpInput`](/docs/extensions/bootstrap6/reference/otpinput/index.md) | Renders a Bootstrap OTP input: a single `.otp-input` text field inside an `.otp` container drawn as code slots. |
| [`Placeholder`](/docs/extensions/bootstrap6/reference/placeholder/index.md) | Renders a Bootstrap loading placeholder (skeleton) element. |
| [`Popover`](/docs/extensions/bootstrap6/reference/popover/index.md) | Renders an element that wraps the trigger content and shows a Bootstrap popover on click. |
| [`Progress`](/docs/extensions/bootstrap6/reference/progress/index.md) | Renders a Bootstrap progress bar, or a stacked progress bar when [`$bars`](/docs/extensions/bootstrap6/reference/progress/index.md#property-bars) is set. |
| [`Range`](/docs/extensions/bootstrap6/reference/range/index.md) | Renders a Bootstrap range: a `.form-range-input` range input inside a `.form-range` wrapper, with optional tick marks from a `<datalist>`. |
| [`Spinner`](/docs/extensions/bootstrap6/reference/spinner/index.md) | Renders a Bootstrap border or grow spinner with a visually hidden status label. |
| [`Stepper`](/docs/extensions/bootstrap6/reference/stepper/index.md) | Renders a Bootstrap stepper as an ordered list of steps, or as a `<div>` of links when a step has a `url`. |
| [`Strength`](/docs/extensions/bootstrap6/reference/strength/index.md) | Renders a Bootstrap password strength meter, segmented or as a single bar, with optional text feedback. |
| [`Tabs`](/docs/extensions/bootstrap6/reference/tabs/index.md) | Renders a nav of tab buttons and the matching `.tab-pane` panels for the Bootstrap Tab plugin. |
| [`Toast`](/docs/extensions/bootstrap6/reference/toast/index.md) | Renders a Bootstrap toast with an optional header and initializes its plugin. |
| [`ToggleButtonGroup`](/docs/extensions/bootstrap6/reference/togglebuttongroup/index.md) | Renders a group of checkbox or radio toggle buttons for a model attribute or a named input. |
| [`Toggler`](/docs/extensions/bootstrap6/reference/toggler/index.md) | Renders an element that toggles a class or an attribute on click through the Bootstrap toggler plugin. |
| [`Tooltip`](/docs/extensions/bootstrap6/reference/tooltip/index.md) | Renders an element that wraps the trigger content and shows a Bootstrap tooltip on hover and focus. |
| [`Widget`](/docs/extensions/bootstrap6/reference/widget/index.md) | Provides the base class for Bootstrap 6 widgets. |

## Traits

| Trait | Summary |
| --- | --- |
| [`AttributesTrait`](/docs/extensions/bootstrap6/reference/attributestrait/index.md) | Provides fluent methods that modify the HTML attributes of the widget element. |
| [`BootstrapWidgetTrait`](/docs/extensions/bootstrap6/reference/bootstrapwidgettrait/index.md) | Provides Bootstrap plugin registration, client options, and client events for widgets. |
| [`TogglerAttributesTrait`](/docs/extensions/bootstrap6/reference/togglerattributestrait/index.md) | Provides fluent methods that modify the HTML attributes of the toggler rendered by the widget. |