- Home
- /
- Design
- /
- DMBBootstrapBuilder
- /
- Introduction
Introduction — BootstrapBuilder
Bootstrap components expressed through the PageBuilder rendering model.
Express Bootstrap components as typed C# builders — no scattered class strings.
Navigation, sidebar, footer and breadcrumb driven by provider interfaces.
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.
@@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.