ColorlibHQ.AdminLTE.AspNetCore 0.2.0

dotnet add package ColorlibHQ.AdminLTE.AspNetCore --version 0.2.0
                    
NuGet\Install-Package ColorlibHQ.AdminLTE.AspNetCore -Version 0.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ColorlibHQ.AdminLTE.AspNetCore" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ColorlibHQ.AdminLTE.AspNetCore" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="ColorlibHQ.AdminLTE.AspNetCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ColorlibHQ.AdminLTE.AspNetCore --version 0.2.0
                    
#r "nuget: ColorlibHQ.AdminLTE.AspNetCore, 0.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ColorlibHQ.AdminLTE.AspNetCore@0.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ColorlibHQ.AdminLTE.AspNetCore&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=ColorlibHQ.AdminLTE.AspNetCore&version=0.2.0
                    
Install as a Cake Tool

AdminLTE 4 for ASP.NET Core

NuGet .NET 10 Bootstrap 5.3 License

Official AdminLTE 4 integration for ASP.NET Core β€” Blazor components and Tag Helpers for MVC / Razor Pages, built on Bootstrap 5.3 with vanilla JS (no jQuery). The compiled AdminLTE, Bootstrap and Bootstrap Icons assets ship inside the package as static web assets, so consumers just dotnet add package and reference them.

<p align="center"> <a href="https://adminlte.io/themes/v4/"><strong>πŸ”— AdminLTE demo β†’</strong></a>  Β·  <a href="#installation"><strong>Get started β†’</strong></a> </p>

Also available for your stack

The same AdminLTE 4 dashboard, in the framework you know best β€” you're looking at the ASP.NET Core edition:

<p align="center"> <a href="https://github.com/ColorlibHQ/adminlte-react"><img height="36" alt="React" src="https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB"></a> <a href="https://github.com/ColorlibHQ/adminlte-react"><img height="36" alt="Next.js" src="https://img.shields.io/badge/Next.js-000000?style=for-the-badge&logo=nextdotjs&logoColor=white"></a> <a href="https://github.com/ColorlibHQ/adminlte-vue"><img height="36" alt="Vue" src="https://img.shields.io/badge/Vue.js-35495E?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D"></a> <a href="https://github.com/ColorlibHQ/adminlte-vue"><img height="36" alt="Nuxt" src="https://img.shields.io/badge/Nuxt-00DC82?style=for-the-badge&logo=nuxt&logoColor=white"></a> <a href="https://github.com/ColorlibHQ/adminlte-laravel"><img height="36" alt="Laravel" src="https://img.shields.io/badge/Laravel-FF2D20?style=for-the-badge&logo=laravel&logoColor=white"></a> <a href="https://github.com/ColorlibHQ/adminlte-django"><img height="36" alt="Django" src="https://img.shields.io/badge/Django-092E20?style=for-the-badge&logo=django&logoColor=white"></a> <a href="https://github.com/ColorlibHQ/adminlte-symfony"><img height="36" alt="Symfony" src="https://img.shields.io/badge/Symfony-000000?style=for-the-badge&logo=symfony&logoColor=white"></a> <a href="https://github.com/ColorlibHQ/adminlte-aspnet"><img height="36" alt="ASP.NET Core β€” you are here" src="https://img.shields.io/badge/ASP.NET%20Core-you%20are%20here-512BD4?style=for-the-badge&logo=dotnet&logoColor=white"></a> </p>

<p align="center"><sub> Frameworks: <a href="https://github.com/ColorlibHQ/adminlte-react">React</a> Β· <a href="https://github.com/ColorlibHQ/adminlte-react">Next.js</a> Β· <a href="https://github.com/ColorlibHQ/adminlte-vue">Vue</a> Β· <a href="https://github.com/ColorlibHQ/adminlte-vue">Nuxt</a> Β· <a href="https://github.com/ColorlibHQ/adminlte-laravel">Laravel</a> Β· <a href="https://github.com/ColorlibHQ/adminlte-django">Django</a> Β· <a href="https://github.com/ColorlibHQ/adminlte-symfony">Symfony</a> Β· <strong>ASP.NET Core</strong> (you are here) </sub></p>

Also available as the original AdminLTE (HTML Β· Bootstrap 5.3 Β· vanilla JS β€” demo) and the legacy AdminLTE v3 (Bootstrap 4 Β· jQuery).

What's included

  • Two rendering models from one NuGet package:
    • Blazor components (Server & WebAssembly, interactive render modes) β€” <DashboardLayout>, <Card>, <SmallBox>, <EditForm>-friendly inputs, and more.
    • Tag Helpers for MVC / Razor Pages β€” <adminlte-sidebar>, <adminlte-card>, <adminlte-small-box>, <adminlte-info-box>, <adminlte-alert>, <adminlte-callout>, <adminlte-progress>, <adminlte-timeline>, <adminlte-breadcrumb>, <adminlte-profile-card>, <adminlte-description-block>, <adminlte-styles>, <adminlte-scripts>.
  • All 11 layout components β€” DashboardLayout, AuthLayout, AppContent, Topbar, Sidebar, SidebarBrand, SidebarNav, SidebarNavItem, SidebarOverlay, Footer, ColorModeToggle, plus the topbar dropdowns NavMessages, NavNotifications and NavTasks.
  • Widgets β€” Card, SmallBox, InfoBox, Alert, Callout, Progress, ProgressGroup, Ratings, Timeline, Breadcrumb, ProfileCard, DescriptionBlock, DirectChat, Tabs/Tab and Accordion/AccordionItem.
  • Priority form components β€” Button, Input, Select, Textarea, InputSwitch (all support @bind-Value inside EditForm).
  • Config-driven sidebar menu β€” a strongly-typed MenuItem model bound from appsettings.json via the Options pattern (text, route/href, icon, badge, submenu, authorization policy / role), with automatic active-item highlighting.
  • Light / dark / auto color mode β€” persisted to localStorage, with a server-respecting blocking script so there's no flash of the wrong theme on first paint.
  • ⌘K command palette β€” searches your (authorized) menu; opens via the topbar pill or Cmd/Ctrl+K.
  • Bundled static web assets β€” compiled AdminLTE 4, Bootstrap 5.3.8 and Bootstrap Icons served from /_content/ColorlibHQ.AdminLTE.AspNetCore/…. No npm build step required by consumers.

Requirements

  • .NET 10 SDK (ASP.NET Core 10) or later
  • A Blazor Web App, MVC, or Razor Pages project

Installation

dotnet add package ColorlibHQ.AdminLTE.AspNetCore

Register the services in Program.cs (binds the menu from the "AdminLte" config section):

using ColorlibHQ.AdminLTE.AspNetCore;

builder.Services.AddAdminLte(builder.Configuration);
builder.Services.AddHttpContextAccessor(); // needed for the sidebar Tag Helper's active state

Define the menu in appsettings.json:

{
  "AdminLte": {
    "BrandText": "AdminLTE 4",
    "SidebarTheme": "dark",
    "Menu": [
      { "Header": "MAIN NAVIGATION" },
      { "Text": "Dashboard", "Url": "/", "Icon": "bi bi-speedometer" },
      {
        "Text": "Widgets", "Icon": "bi bi-grid-1x2", "Badge": "New", "BadgeColor": "primary",
        "Children": [
          { "Text": "Cards", "Url": "/widgets/cards", "Icon": "bi bi-circle" },
          { "Text": "Small Boxes", "Url": "/widgets/small-boxes", "Icon": "bi bi-circle" }
        ]
      },
      { "Text": "Admin", "Url": "/admin", "Icon": "bi bi-shield-lock", "Policy": "RequireAdmin" }
    ]
  }
}

Usage β€” Blazor

Reference the bundled CSS/JS in your App.razor and wrap pages in DashboardLayout:

@* App.razor <head> *@
<AdminLteStyles />
@* …before </body>, after blazor.web.js *@
<AdminLteScripts />
@* MainLayout.razor *@
@inherits LayoutComponentBase
<DashboardLayout>
    @Body
</DashboardLayout>
@* A page *@
@page "/"
<AppContent Title="Dashboard">
    <div class="row">
        <div class="col-lg-3 col-6">
            <SmallBox Theme="primary" Title="150" Text="New Orders" Icon="bi-bag-fill" Url="/orders" />
        </div>
    </div>
    <Card Title="Monthly Recap" Theme="primary" Variant="outline" Collapsible="true">
        <Progress Value="80" Theme="success" ShowLabel="true" />
        <Button Theme="primary" Icon="bi-download" Label="Export" />
    </Card>
</AppContent>

Forms bind two-way inside an EditForm:

<EditForm Model="_model" OnValidSubmit="Submit">
    <Input Label="Email" Type="email" @bind-Value="_model.Email" Prepend="@@" />
    <Select Label="Department" @bind-Value="_model.Department" Options="_departments" />
    <InputSwitch Label="Subscribe" @bind-Value="_model.Subscribe" />
    <Button Type="submit" Theme="primary" Label="Send" />
</EditForm>

Usage β€” MVC / Razor Pages (Tag Helpers)

Register the Tag Helpers in Views/_ViewImports.cshtml:

@addTagHelper *, ColorlibHQ.AdminLTE.AspNetCore

Then in your layout / views:

<head>
    <adminlte-styles />
</head>
<body class="layout-fixed sidebar-expand-lg bg-body-tertiary">
    <div class="app-wrapper">
        <nav class="app-header navbar navbar-expand bg-body">
            <ul class="navbar-nav ms-auto"><adminlte-color-mode-toggle /></ul>
        </nav>

        <adminlte-sidebar />

        <main class="app-main">
            <div class="app-content"><div class="container-fluid">
                <adminlte-small-box title="150" text="New Orders" icon="bi-bag-fill" theme="primary" url="/orders" />
                <adminlte-card title="Welcome" theme="primary" variant="outline">…</adminlte-card>
            </div></div>
        </main>
    </div>
    <adminlte-scripts />
</body>

A full MVC layout + view sample lives in docs/mvc-usage/.

Components

Category Components
Layout (Blazor) DashboardLayout, AuthLayout, AppContent, Topbar, Sidebar, SidebarBrand, SidebarNav, SidebarNavItem, SidebarOverlay, Footer, ColorModeToggle, CommandPalette, NavMessages, NavNotifications, NavTasks
Widgets (Blazor) Card, SmallBox, InfoBox, Alert, Callout, Progress, ProgressGroup, Ratings, Timeline, Breadcrumb, ProfileCard, DescriptionBlock, DirectChat, Tabs/Tab, Accordion/AccordionItem
Forms (Blazor) Button, Input, Select, Textarea, InputSwitch
Tag Helpers (MVC) <adminlte-styles>, <adminlte-scripts>, <adminlte-sidebar>, <adminlte-color-mode-toggle>, <adminlte-card>, <adminlte-small-box>, <adminlte-info-box>, <adminlte-alert>, <adminlte-callout>, <adminlte-progress>, <adminlte-timeline>, <adminlte-breadcrumb>, <adminlte-profile-card>, <adminlte-description-block>

Demo

A runnable Blazor Web App that dogfoods the library lives in samples/AdminLte.Demo:

dotnet run --project samples/AdminLte.Demo

Then open the printed https://localhost:7080 URL. It shows the dashboard (small boxes, info boxes, cards, timeline), a forms page, a profile page, and a login page using AuthLayout.

Building from source

dotnet restore
dotnet build
dotnet run --project samples/AdminLte.Demo   # run the demo
dotnet pack src/ColorlibHQ.AdminLTE.AspNetCore -c Release   # produce the NuGet package

Contributing

Issues and PRs are welcome. Please keep the component API and AdminLTE markup consistent with the other official ports (React, Vue, Laravel, Django, Symfony).

License

MIT Β© 2014-2026 ColorlibHQ. Built on the AdminLTE admin template.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 101 6/26/2026

Initial preview of the official AdminLTE 4 ASP.NET Core port: Blazor components + Tag Helpers + bundled static web assets.