Introduction — BootstrapBuilder

Bootstrap components expressed through the PageBuilder rendering model.

Fluent Bootstrap API

Express Bootstrap components as typed C# builders — no scattered class strings.

Application Shell

Navigation, sidebar, footer and breadcrumb driven by provider interfaces.

Composable Action Items

Centralises routes, icons, variants and labels behind a single factory API.

What is BootstrapBuilder?

DMBBootstrapBuilder is the Bootstrap-oriented UI layer of the DMB stack. It provides fluent builders for common Bootstrap structures while preserving the PageBuilder approach: explicit composition, predictable output and page-aware resource registration.

Use it when you want Bootstrap UI without scattering class strings and repeated markup patterns across views. The package exposes components, layout primitives and application shell helpers such as navigation, sidebar, breadcrumb, footer, theme switching and cookie consent composition.

Predictable Output: Every builder produces the same Bootstrap markup regardless of where it is called in the view.
No Scattered Class Strings: Bootstrap variants, spacing, responsive breakpoints and states are expressed as typed enums, not inline strings.
Shell Integration: Navigation, sidebar and footer are driven by provider interfaces, keeping layout concerns out of individual views.
@@Html.Button(ActionItemFactory.Url("...", "#").SetVariant(VariantStyle.Primary)).Render()

A sample of Bootstrap components rendered through BootstrapBuilder.

Three Pillars of BootstrapBuilder

BootstrapBuilder is organized around three main areas, each covering a distinct layer of Bootstrap UI.

Bootstrap Components

Buttons, alerts, badges, cards, modals, tabs, tables and layout blocks through fluent builders.

.ButtonRender()
Application Shell

Navigation bar, sidebar, footer, breadcrumb, theme controls and profile sections composed from providers.

.NavBarBuilder()
Composable API

Keeps Bootstrap classes available, but centralises repeated patterns behind builders and action items.

.CardBuilder()

Core Philosophy

We believe Bootstrap should be configured through intent, not class strings. When you write .SetVariant(VariantStyle.Primary) , you express the intent to use the primary variant. The builder handles the Bootstrap class, the HTML structure, and any accessibility attribute required.

Next Step

Learn how to install and configure BootstrapBuilder in your project.

Getting Started