Accordion

Collapsible panels — one or many open at a time, with icons, badges and subtitles.

Standard

AccordionAreaBuilder renders a standard Bootstrap accordion — only one panel can be open at a time. Open() expands a panel on load.

Standard

Understanding your goals, constraints and audience before writing a single line of code.

Wireframes, prototypes and a visual language aligned with your brand.

Clean, well-tested code delivered in regular sprints.

Deployment, monitoring and full handover documentation.

C#
@using DMBBootstrapBuilder
@using DMBPageBuilder
@using (Html.AccordionAreaBuilder().Id("acc-standard").Begin())
{
    @using (Html.AccordionBlockBuilder().WithTitle("Discovery").WithIcon(IconStruct.Bootstrap("bi-search")).Open().Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:Understanding your goals, constraints and audience before writing a single line of code.
        }
    }
    @using (Html.AccordionBlockBuilder().WithTitle("Design").WithIcon(IconStruct.Bootstrap("bi-pencil-square")).Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:Wireframes, prototypes and a visual language aligned with your brand.
        }
    }
    @using (Html.AccordionBlockBuilder().WithTitle("Development").WithIcon(IconStruct.Bootstrap("bi-code-slash")).Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:Clean, well-tested code delivered in regular sprints.
        }
    }
    @using (Html.AccordionBlockBuilder().WithTitle("Launch").WithIcon(IconStruct.Bootstrap("bi-rocket-takeoff")).Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:Deployment, monitoring and full handover documentation.
        }
    }
}

Badges & Disabled

AddBadge(string, VariantStyle) adds a count badge to the header. Disabled() prevents a panel from being expanded.

Badges & disabled

12 unread messages waiting for your attention.

4 pending tasks assigned to you.

This panel is disabled — it cannot be opened.

General application configuration.

C#
@using DMBBootstrapBuilder
@using DMBPageBuilder
@using (Html.AccordionAreaBuilder().Id("acc-badges").Begin())
{
    @using (Html.AccordionBlockBuilder().WithTitle("Inbox").WithIcon(IconStruct.Bootstrap("bi-inbox")).AddBadge("12", VariantStyle.Danger).Open().Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:12 unread messages waiting for your attention.
        }
    }
    @using (Html.AccordionBlockBuilder().WithTitle("Tasks").WithIcon(IconStruct.Bootstrap("bi-list-check")).AddBadge("4", VariantStyle.Warning).Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:4 pending tasks assigned to you.
        }
    }
    @using (Html.AccordionBlockBuilder().WithTitle("Archive").WithIcon(IconStruct.Bootstrap("bi-archive")).Disabled().Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:This panel is disabled — it cannot be opened.
        }
    }
    @using (Html.AccordionBlockBuilder().WithTitle("Settings").WithIcon(IconStruct.Bootstrap("bi-gear")).Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:General application configuration.
        }
    }
}

Flush

Flush() removes the outer border and rounded corners — panels blend seamlessly with the surrounding container.

Flush

High-level summary of the project status and key metrics.

Jean-François · Quentin · Lila · Gégé

Billing information and current subscription status.

C#
@using DMBBootstrapBuilder
@using DMBPageBuilder
@using (Html.AccordionAreaBuilder().Id("acc-flush").Flush().Begin())
{
    @using (Html.AccordionBlockBuilder().WithTitle("Overview").WithIcon(IconStruct.Bootstrap("bi-bar-chart")).Open().Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:High-level summary of the project status and key metrics.
        }
    }
    @using (Html.AccordionBlockBuilder().WithTitle("Team").WithIcon(IconStruct.Bootstrap("bi-people")).Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:Jean-François · Quentin · Lila · Gégé
        }
    }
    @using (Html.AccordionBlockBuilder().WithTitle("Billing").WithIcon(IconStruct.Bootstrap("bi-credit-card")).Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:Billing information and current subscription status.
        }
    }
}

StayOpen

StayOpen() allows multiple panels to be expanded simultaneously — each collapses independently.

StayOpen

Razor views, Bootstrap layout and client-side effects.

ASP.NET Core controllers, services and data access layer.

Deployment pipelines, cloud hosting and monitoring.

C#
@using DMBBootstrapBuilder
@using DMBPageBuilder
@using (Html.AccordionAreaBuilder().Id("acc-stayopen").StayOpen().Begin())
{
    @using (Html.AccordionBlockBuilder().WithTitle("Frontend").WithIcon(IconStruct.Bootstrap("bi-window")).Open().Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:Razor views, Bootstrap layout and client-side effects.
        }
    }
    @using (Html.AccordionBlockBuilder().WithTitle("Backend").WithIcon(IconStruct.Bootstrap("bi-server")).Open().Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:ASP.NET Core controllers, services and data access layer.
        }
    }
    @using (Html.AccordionBlockBuilder().WithTitle("Infrastructure").WithIcon(IconStruct.Bootstrap("bi-cloud")).Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:Deployment pipelines, cloud hosting and monitoring.
        }
    }
}

WithSubtitle

WithSubtitle(string) adds a secondary label below the panel title inside the accordion header.

WithSubtitle

Manage your profile, email address and authentication methods.

API keys, two-factor authentication and active sessions.

Requests, storage and bandwidth consumed this billing period.

C#
@using DMBBootstrapBuilder
@using DMBPageBuilder
@using (Html.AccordionAreaBuilder().Id("acc-subtitle").Begin())
{
    @using (Html.AccordionBlockBuilder().WithTitle("Account").WithSubtitle("Identity and credentials").WithIcon(IconStruct.Bootstrap("bi-person-badge")).Open().Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:Manage your profile, email address and authentication methods.
        }
    }
    @using (Html.AccordionBlockBuilder().WithTitle("Security").WithSubtitle("Tokens and authorizations").WithIcon(IconStruct.Bootstrap("bi-shield-lock")).Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:API keys, two-factor authentication and active sessions.
        }
    }
    @using (Html.AccordionBlockBuilder().WithTitle("Usage").WithSubtitle("Metrics and activity").WithIcon(IconStruct.Bootstrap("bi-graph-up")).Begin())
    {
        @using (Html.PB_P().AsMuted().Begin())
        {
            @:Requests, storage and bandwidth consumed this billing period.
        }
    }
}