Profile variant

Identity header with avatar, cover image, stats, tags, and socials. Available in sm / md / lg sizes.

Profile, small size

razor
<HeroCard Variant="HeroVariant.Profile" Size="HeroSize.Sm" BackgroundImageSrc="/images/cover.jpg" BackgroundImageAlt="Profile cover" AvatarSrc="/images/avatar.jpg" AvatarAlt="Olivia Rhye" AvatarInitials="OR" Title="Olivia Rhye" Subtitle="Product Designer at Untitled UI" Stats="@oliviaStats"> <Actions> <Button Variant="primary" Size="sm" Text="Follow" /> <Button Variant="secondary" Size="sm" Text="Message" /> </Actions> </HeroCard> @code { private List<HeroStat> oliviaStats = new() { new("Projects", "12"), new("Followers", "2.4k"), new("Joined", "2023") }; }

Profile, medium size, with stats and tags

razor
<HeroCard Variant="HeroVariant.Profile" Size="HeroSize.Md" BackgroundImageSrc="/images/cover.jpg" BackgroundImageAlt="Profile cover" AvatarSrc="/images/avatar.jpg" AvatarAlt="Olivia Rhye" AvatarInitials="OR" Title="Olivia Rhye" Subtitle="Product Designer at Untitled UI" Description="Passionate about building delightful interfaces and championing design systems across teams." Stats="@oliviaStats" Tags="@oliviaTags"> <Actions> <Button Variant="primary" Size="md" Text="Follow" /> <Button Variant="secondary" Size="md" Text="Message" /> </Actions> </HeroCard> @code { private List<HeroStat> oliviaStats = new() { new("Projects", "12"), new("Followers", "2.4k"), new("Joined", "2023") }; private List<string> oliviaTags = new() { "Design Systems", "Figma", "Blazor" }; }

Profile, large size, without cover image (solid background fallback)

razor
@* No BackgroundImageSrc → solid background fallback *@ <HeroCard Variant="HeroVariant.Profile" Size="HeroSize.Lg" AvatarInitials="JD" Title="Jamie Doe" Subtitle="Engineering Manager" Description="Leading the platform team through our next generation of developer tooling." Stats="@jamieStats"> <Actions> <Button Variant="primary" Size="md" Text="View profile" /> </Actions> </HeroCard>

Highlight variant

Brand-gradient announcement with optional leading icon and dismiss button. Available in sm / md / lg sizes.

Highlight, small size, text-only (no leading icon)

razor
<HeroCard Variant="HeroVariant.Highlight" Size="HeroSize.Sm" Title="Maintenance window on Saturday" Description="We'll be upgrading our database between 02:00 and 04:00 UTC."> <Eyebrow>Heads up</Eyebrow> <LeadingIcon> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M12 2L15 8L22 9L17 14L18 21L12 18L6 21L7 14L2 9L9 8L12 2Z" /> </svg> </LeadingIcon> </HeroCard>

Highlight, medium size, default brand gradient with leading icon, dismissible

razor
<HeroCard Variant="HeroVariant.Highlight" Size="HeroSize.Md" Title="Welcome to the platform" Description="Everything you need to design, ship, and scale beautiful interfaces - in one place." Dismissible="true"> <Eyebrow>New Release</Eyebrow> <LeadingIcon> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M12 2L15 8L22 9L17 14L18 21L12 18L6 21L7 14L2 9L9 8L12 2Z" /> </svg> </LeadingIcon> <Actions> <Button Variant="secondary" Size="md" Text="Get started" /> <Button Variant="tertiary" Size="md" Text="Learn more" /> </Actions> </HeroCard>

Highlight, large size, custom gradient (slate)

razor
@* Override the brand gradient with custom from/to stops *@ <HeroCard Variant="HeroVariant.Highlight" Size="HeroSize.Lg" GradientFrom="#0f172a" GradientTo="#334155" Title="Ship with confidence" Description="Our new CI pipeline catches issues before they reach production."> <Eyebrow>Engineering</Eyebrow> <Actions> <Button Variant="primary" Size="md" Text="Read the announcement" /> </Actions> </HeroCard>

Featured variant

Content spotlight with edge-to-edge media in three layouts (split, overlay, top). Available in sm / md / lg sizes.

Featured, small size, split layout

razor
<HeroCard Variant="HeroVariant.Featured" Size="HeroSize.Sm" MediaLayout="HeroMediaLayout.Split" MediaPosition="HeroMediaPosition.Right" BackgroundImageSrc="/images/tutorial.jpg" BackgroundImageAlt="Laptop on desk" Title="Quick read on our API" Description="A 5-minute tour of the new endpoints."> <Eyebrow>Tutorial</Eyebrow> <Actions> <Button Variant="primary" Size="sm" Text="Start tutorial" /> </Actions> </HeroCard>

Featured, medium size, split layout, media on right

razor
<HeroCard Variant="HeroVariant.Featured" Size="HeroSize.Md" MediaLayout="HeroMediaLayout.Split" MediaPosition="HeroMediaPosition.Right" BackgroundImageSrc="/images/case-study.jpg" BackgroundImageAlt="Laptop on desk" Title="Building a design system that scales" Description="How we organized 200+ components into a coherent library used by 40 teams."> <Eyebrow>Case Study</Eyebrow> <Actions> <Button Variant="primary" Size="md" Text="Read case study" /> </Actions> </HeroCard>

Featured, medium size, split layout, media on left

razor
<HeroCard Variant="HeroVariant.Featured" Size="HeroSize.Md" MediaLayout="HeroMediaLayout.Split" MediaPosition="HeroMediaPosition.Left" BackgroundImageSrc="/images/dashboard.jpg" BackgroundImageAlt="Dashboard mockup" Title="The analytics dashboard, redesigned" Description="Faster queries, richer filters, and custom dashboards in a single surface."> <Eyebrow>Product Update</Eyebrow> <Actions> <Button Variant="primary" Size="md" Text="See what's new" /> <Button Variant="tertiary" Size="md" Text="Changelog" /> </Actions> </HeroCard>

Featured, large size, overlay layout (text on image with scrim)

razor
@* Overlay places text over the image with a dark scrim for legibility *@ <HeroCard Variant="HeroVariant.Featured" Size="HeroSize.Lg" MediaLayout="HeroMediaLayout.Overlay" BackgroundImageSrc="/images/hero-vision.jpg" BackgroundImageAlt="Earth from space at night" Title="The future of remote collaboration" Description="Our vision for the next decade of distributed product teams."> <Eyebrow>Vision</Eyebrow> <Actions> <Button Variant="primary" Size="md" Text="Read more" /> </Actions> </HeroCard>

Featured, medium size, top layout (image above content)

razor
<HeroCard Variant="HeroVariant.Featured" Size="HeroSize.Md" MediaLayout="HeroMediaLayout.Top" BackgroundImageSrc="/images/dashboard.jpg" BackgroundImageAlt="Dashboard mockup" Title="Introducing analytics v2" Description="Faster queries, richer filters, and custom dashboards - all in one place."> <Eyebrow>Product Update</Eyebrow> <Actions> <Button Variant="primary" Size="md" Text="See what's new" /> <Button Variant="tertiary" Size="md" Text="Changelog" /> </Actions> </HeroCard>
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.