Architecture — ComponentBuilder

A product-component layer for reusable workflow experiences.

1. Component Separation

DMBComponentBuilder sits above BootstrapBuilder and packages repeated product patterns into reusable components. It is used when the application needs more than a Bootstrap primitive: timelines, roadmaps, guided steps, checkout progress, ratings or media-specific viewers. ComponentBuilder owns composed UI experiences — BootstrapBuilder provides the visual structure, PageBuilder owns the rendering lifecycle.

ComponentBuilder structure
Components/
  Timeline/        → TimelineBuilder, TimelineItem
  Roadmap/         → RoadmapBuilder, RoadmapMilestone
  Step/            → StepByStepBuilder, StepItem
  CheckoutProgress → CheckoutProgressBuilder
  Shared/          → CodeBlock, RatingBadge …

2. Data-Driven Rendering

Each component starts from a structured definition — timeline entries, roadmap milestones, steps, ratings or media panels. Builders translate those definitions into BootstrapBuilder rows, cards, badges, lists and actions. This keeps product workflows separate from Bootstrap-level markup.

Data-to-markup flow
// The view prepares domain-shaped data
var items = new List<TimelineItem>
{
    new() { Title = "Released", Status = TimelineStatus.Done },
    new() { Title = "In Progress", Status = TimelineStatus.Active },
};

// The builder maps data to markup
@Html.TimelineBuilder().AddItems(items).Render()

3. Extension Points

Add a focused component definition for stable repeated workflow data. Create builders that map definitions to BootstrapBuilder primitives. Provide demo pages that cover realistic examples and important states. Keep simple Bootstrap-only UI in BootstrapBuilder instead of promoting it too early.

Component definition pattern
// Keep component definitions close to the domain
public class TimelineItem
{
    public string Title { get; set; }
    public TimelineStatus Status { get; set; }
    public string? Description { get; set; }
}
Tech Stack
Backend: .NET 10 / ASP.NET Core
UI: BootstrapBuilder components
Architecture: Composed component pattern
Integration: PageBuilder + BootstrapBuilder

See it in action

Learn how product data flows from definitions to rendered BootstrapBuilder markup.

Rendering Pipeline