Skip to content
PHP Ecosystem
Explore

Bootstrap 6 API reference

This content is not available in your language yet.

API reference › Bootstrap 6

Classes, interfaces, traits and enums of yii2\extensions\bootstrap6, generated from the PHPDoc of yii2-extensions/bootstrap6 at main. Machine-readable catalog: bootstrap6.json.

NamespaceTypes
yii2\extensions\bootstrap6\asset4
yii2\extensions\bootstrap6\enum11
yii2\extensions\bootstrap6\exception1
yii2\extensions\bootstrap6\item9
ClassSummary
AccordionRenders a Bootstrap accordion built on native <details> and <summary> elements.
ActiveFieldRenders a Bootstrap 6 form field for the layouts of ActiveForm.
ActiveFormRenders a Bootstrap 6 form with default, horizontal, inline, or floating-label field layouts.
AlertRenders a Bootstrap alert with an optional heading and a dismiss button handled by the Alert plugin.
AvatarRenders a Bootstrap avatar with an image or initials and an optional status indicator.
BadgeRenders a Bootstrap badge for counts, labels, and status indicators.
BaseHtml abstractProvides the Bootstrap 6 implementation of Html.
Bootstrap finalRegisters the yii.bootstrap6 message source when the application does not configure it.
BreadcrumbsRenders a Bootstrap breadcrumb trail with explicit .breadcrumb-divider elements between the items.
ButtonRenders a Bootstrap button, optionally as a toggle button handled by the Button plugin.
ButtonGroupRenders a Bootstrap button group from HTML strings and Button configurations.
ButtonMenuRenders a button that toggles a Menu, or a split button group with a separate menu toggle.
ButtonToolbarRenders a Bootstrap button toolbar from HTML strings and ButtonGroup configurations.
CarouselRenders a Bootstrap carousel with optional previous/next controls, play/pause control, and indicators.
ChipsRenders 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.
CollapseRenders a Bootstrap collapsible element, optionally preceded by a toggle button.
ComboboxRenders a Bootstrap combobox: a .combobox-toggle button followed by a .menu of selectable items.
DatepickerRenders a Bootstrap datepicker as a text input, or as an inline calendar bound to a hidden input.
DialogRenders a Bootstrap dialog on the native <dialog> element, optionally preceded by a toggle button.
DrawerRenders a Bootstrap drawer on the native <dialog> element, optionally preceded by a toggle button.
Html finalProvides HTML helpers that render Bootstrap 6 markup.
IconSet finalProvides the default SVG icons rendered by the widgets and lets applications replace them through the DI container.
InputWidget abstractProvides the base class for Bootstrap 6 form input widgets.
LinkPagerRenders Bootstrap pagination links for a Pagination object.
MenuRenders the Bootstrap .menu panel with links, buttons, headers, dividers, text, and nested submenus.
NavRenders a Bootstrap nav with links, active state detection by route, and items that toggle a Menu.
NavBarRenders a Bootstrap navbar whose content collapses into a drawer below the $expand breakpoint.
NavOverflowRenders a Nav inside a .nav-overflow wrapper that moves the items that do not fit into a “More” menu.
OtpInputRenders a Bootstrap OTP input: a single .otp-input text field inside an .otp container drawn as code slots.
PlaceholderRenders a Bootstrap loading placeholder (skeleton) element.
PopoverRenders an element that wraps the trigger content and shows a Bootstrap popover on click.
ProgressRenders a Bootstrap progress bar, or a stacked progress bar when $bars is set.
RangeRenders a Bootstrap range: a .form-range-input range input inside a .form-range wrapper, with optional tick marks from a <datalist>.
SpinnerRenders a Bootstrap border or grow spinner with a visually hidden status label.
StepperRenders a Bootstrap stepper as an ordered list of steps, or as a <div> of links when a step has a url.
StrengthRenders a Bootstrap password strength meter, segmented or as a single bar, with optional text feedback.
TabsRenders a nav of tab buttons and the matching .tab-pane panels for the Bootstrap Tab plugin.
ToastRenders a Bootstrap toast with an optional header and initializes its plugin.
ToggleButtonGroupRenders a group of checkbox or radio toggle buttons for a model attribute or a named input.
TogglerRenders an element that toggles a class or an attribute on click through the Bootstrap toggler plugin.
TooltipRenders an element that wraps the trigger content and shows a Bootstrap tooltip on hover and focus.
WidgetProvides the base class for Bootstrap 6 widgets.
TraitSummary
AttributesTraitProvides fluent methods that modify the HTML attributes of the widget element.
BootstrapWidgetTraitProvides Bootstrap plugin registration, client options, and client events for widgets.
TogglerAttributesTraitProvides fluent methods that modify the HTML attributes of the toggler rendered by the widget.