Layout
TwCard
TwCard is a Blazor card component for grouping content. Set Title, HeaderContent and Bordered, or lay cards out in a responsive grid.
Last updated
Basic card
Title and some content. The title renders as an h3; set TitleLevel to fit it into your page's heading outline.Account overview
Your account is in good standing. You have 3 active subscriptions, and your next payment is due on 1 November.
<TwCard Title="Account overview">
<p class="text-sm leading-6 text-gray-600 dark:text-gray-300">
Your account is in good standing. You have <span class="font-semibold text-gray-900 dark:text-white">3</span> active subscriptions, and your next payment is due on 1 November.
</p>
</TwCard>Card with an image
ImageSrc to show an image edge to edge across the top of the card. Describe the image in ImageAlt when it adds information; leave it empty when it is decorative, as here, so screen readers skip it. Images load lazily.
Designing for dark mode
2 Oct 2026 · 6 min read
Why dark themes need their own colour choices, not just inverted ones.

Accessible forms in Blazor
9 Oct 2026 · 8 min read
Labels, errors and focus order that work for everyone.
Product cards
MediaContent and FooterContent for a shop. Without ImageSrc, MediaContent is the media itself, here an icon tile with an offer badge; with an image it sits over it. The footer stays at the bottom so prices and buttons line up across a row, and each button names its product for screen readers.Your basket is empty.
Wireless headphones
Noise cancelling, 30 hour battery
£149.00
In stock
Smartwatch
Heart rate, GPS and sleep tracking
£169.00
In stock
Bluetooth speaker
Waterproof, 12 hour battery
£59.99
Only 3 left
Mechanical keyboard
Hot swappable switches, UK layout
£89.00
In stock
Card without border
Bordered="false" to remove the border. The card then stands out from a tinted page through its background and shadow alone.Weekly summary
You closed 14 tickets this week, 4 more than last week.
<div class="rounded-lg bg-gray-100 p-6 dark:bg-gray-900">
<TwCard Title="Weekly summary" Bordered="false">
<p class="text-sm leading-6 text-gray-600 dark:text-gray-300">You closed 14 tickets this week, 4 more than last week.</p>
</TwCard>
</div>Card with header content
HeaderContent for extra header elements below the title, such as a short description.Team members
Manage who can access this workspace.
- AJ
Active
Alice Johnson
alice@example.co.uk · Admin
- BO
Active
Ben Okafor
ben@example.co.uk · Editor
- CW
Invited
Chloe Williams
chloe@example.co.uk · Viewer
Content-only card
Title for a card that is just content, such as a profile summary.Priya Patel
Product designer, London
<TwCard>
<div class="flex flex-wrap items-center gap-4">
<TwAvatar Name="Priya Patel" Color="Color.Primary" Size="AvatarSize.Large" />
<div class="min-w-0 flex-1">
<p class="font-semibold text-gray-900 dark:text-white">Priya Patel</p>
<p class="text-sm text-gray-600 dark:text-gray-300">Product designer, London</p>
</div>
<TwButton Variant="ButtonVariant.Outlined" Color="Color.Primary" StartIcon="Icon.Envelope" AriaLabel="Message Priya Patel">Message</TwButton>
</div>
</TwCard>Card grid
sm breakpoint.Revenue
£24,500
12.5% up on last month
Orders
1,234
8.2% up on last month
Customers
567
3.1% down on last month
Theme configuration
TwBlazorTheme.Components (a TwCardTheme), configured via the
AddTwBlazor() options callback described on the Get Started page.
Every property is a set of Tailwind classes, so changes are picked up by your own Tailwind build.
Full reference: TwCardTheme on the API docs.