{% comment %} mvp.toolbar — Horizontal toolbar layout container. A responsive horizontal bar that combines an optional heading with slotted content areas. By default it stacks vertically and switches to a flex row at the `sm` breakpoint. Behaviour is fully controlled via the `row` prop. Props: title (str) – Optional heading text rendered on the leading edge. level (int) – Heading level for `title` (1–6). Default: 1. fs (int) – Bootstrap `fs-*` size override for the heading. Defaults to the value of `level`. reverse (flag) – When present, applies `mvp.toolbar--reverse` to flip the layout direction. gap (int) – Bootstrap `gap-*` spacing between toolbar children. Default: 1. container (bool) - Denotes whether the contents should be placed inside a fixed-width, responsive container fluid (bool) - Denotes whether the contents should be place in a full-width container (with horizontal padding) width (str) – Container width variant passed as `container-{width}`. Options: - "full": Full width, no horizontal padding - "fluid" (default): Full width, horizontal padding - "container": Width defined by responsive breakpoints row (str) – Controls when (or whether) the toolbar switches to a horizontal flex-row layout. - "sm" (default): row from the `sm` breakpoint upward. - "md" / "lg" / "xl" / "xxl": row from that breakpoint. - "True": always a row at every breakpoint. - not set / "": always stacked (column) at every breakpoint. center (flag) – Centers children horizontally within each stacked row (`align-items-center`). Useful when `row` is a breakpoint to center items on smaller screens before the row kicks in, or when `row` is not set and the layout is always stacked. vspace (int) – Bootstrap `py-*` value controlling vertical (y-axis) padding. Default: 2. Set to "" or "0" to remove padding. class (str) – Additional CSS classes appended to the root element. attrs – Extra HTML attributes forwarded to the root `
`. Slots: start – Content placed in a `mvp.toolbar-start` div before the default slot. Typically used for leading action buttons or controls. (slot) – Default slot content rendered after the start region. Usage: Additional toolbar content {% endcomment %}
{% if title %} {# djlint:off #} {% if icon %}{% endif %} {{ title }} {# djlint:on #} {% else %} {{ slot }} {% endif %} {% if actions %} {{ actions }} {% endif %}