Tablazor 0.6.0
See the version list below for details.
dotnet add package Tablazor --version 0.6.0
NuGet\Install-Package Tablazor -Version 0.6.0
<PackageReference Include="Tablazor" Version="0.6.0" />
<PackageVersion Include="Tablazor" Version="0.6.0" />
<PackageReference Include="Tablazor" />
paket add Tablazor --version 0.6.0
#r "nuget: Tablazor, 0.6.0"
#:package Tablazor@0.6.0
#addin nuget:?package=Tablazor&version=0.6.0
#tool nuget:?package=Tablazor&version=0.6.0
Tablazor
A Blazor component library built on the Tabler UI kit.
Features
- Multi-Target Support - Supports .NET 8.0, 9.0, and 10.0
- Tabler Design System - Beautiful, consistent UI components based on Tabler
- Blazor Native - Built specifically for Blazor with full component lifecycle support
- Accessible - Components support ARIA attributes and keyboard navigation
- 4000+ Icons - Includes the complete Tabler Icons set
Installation
dotnet add package Tablazor
Quick Start
- Add the Tabler CSS to your
App.razororindex.html:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/core@latest/dist/css/tabler.min.css">
- Add the namespace to your
_Imports.razor:
@using Tablazor.Components
@using Tablazor.Enums
- Use components in your Blazor pages:
<TabBadge Color="TabColors.Primary">New</TabBadge>
<TabAvatar ImageUrl="https://example.com/avatar.jpg" />
<TabAvatarList Stacked="true">
<TabAvatar ImageUrl="..." />
<TabAvatar ImageUrl="..." />
<TabAvatar>+3</TabAvatar>
</TabAvatarList>
Components
Badge
Small count and labeling components for adding extra information to interface elements.
<TabBadge>Default</TabBadge>
<TabBadge Color="TabColors.Success">Success</TabBadge>
<TabBadge Color="TabColors.Primary" Shape="BadgeShape.Pill">Pill</TabBadge>
<TabBadge Color="TabColors.Info" Size="BadgeSize.Large">Large</TabBadge>
<TabBadge Color="TabColors.Warning" Href="/notifications">Link Badge</TabBadge>
Parameters:
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| Color | TabColors | Default | Badge color |
| Shape | BadgeShape | Default | Badge shape (Default, Pill) |
| Size | BadgeSize | Default | Badge size (Small, Default, Large) |
| Href | string? | null | URL to render badge as a link |
| Visible | bool | true | Whether the badge is visible |
Avatar
User profile images and placeholders for personalizing the interface.
<TabAvatar ImageUrl="https://example.com/user.jpg" />
<TabAvatar Color="TabColors.Primary">JD</TabAvatar>
<TabAvatar Color="TabColors.Success" Icon="user" />
<TabAvatar ImageUrl="..." Size="AvatarSize.Large" StatusColor="TabColors.Success" />
Parameters:
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| ImageUrl | string? | null | URL of the avatar image |
| Color | TabColors | Default | Background color for text/icon avatars |
| Size | AvatarSize | Default | Avatar size (ExtraSmall, Small, Default, Large, ExtraLarge) |
| Shape | AvatarShape | Default | Avatar shape (Default, Round, Square) |
| Icon | string? | null | Icon name to display |
| StatusColor | TabColors | Default | Color of status indicator badge |
| Visible | bool | true | Whether the avatar is visible |
Avatar List
Group multiple avatars together, with optional stacking for overlapping display.
<TabAvatarList>
<TabAvatar ImageUrl="..." />
<TabAvatar ImageUrl="..." />
</TabAvatarList>
<TabAvatarList Stacked="true">
<TabAvatar ImageUrl="..." />
<TabAvatar ImageUrl="..." />
<TabAvatar>+5</TabAvatar>
</TabAvatarList>
Parameters:
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| Stacked | bool | false | Display avatars as overlapping stack |
| Visible | bool | true | Whether the list is visible |
Common Parameters
All components inherit from TabBaseComponent and share these parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
CssClass |
string? |
null |
Additional CSS classes |
Style |
string? |
null |
Inline CSS styles |
Visible |
bool |
true |
Whether the component renders |
Disabled |
bool |
false |
Whether the component is disabled |
Components also support attribute splatting for additional HTML attributes.
Development
Prerequisites
- .NET 10.0 SDK
Build
dotnet build src/Tablazor.sln
Run Tests
dotnet test src/Tablazor.sln
Run Demo Site
dotnet run --project src/Tablazor.DemoSite
The demo site runs at https://localhost:7170
Project Structure
src/
├── Tablazor/ # Main component library
│ └── Tablazor/
│ ├── Components/ # Razor components
│ ├── Enums/ # Color, size, shape enumerations
│ ├── Attributes/ # Custom validation attributes
│ └── Icons/ # Tabler Icons (4000+)
├── Tablazor.DemoSite/ # Demo and documentation site
tests/
└── Tablazor.Tests/ # Unit tests (xUnit + bUnit)
License
[Add your license here]
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
-
net10.0
- Microsoft.AspNetCore.Components.Web (>= 10.0.2)
-
net8.0
- Microsoft.AspNetCore.Components.Web (>= 8.0.23)
-
net9.0
- Microsoft.AspNetCore.Components.Web (>= 9.0.12)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Tablazor - A Blazor component library based on the Tabler.io CSS Framework.