A card container component that groups related content with a consistent visual design and optional elevation. RadzenCard provides a versatile styled container for displaying information, images, actions, and other content in a structured format. Supports different visual variants (Filled, Flat, Outlined, Text) that affect the card's appearance. Works well in grid layouts (using RadzenRow/RadzenColumn) or can be stacked vertically. Ideal for grouping related information, creating dashboard widgets, displaying product information, or organizing form sections. Combine with other Radzen components like RadzenImage, RadzenText, and RadzenButton for rich card content.
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponentWithChildren.ChildContent
RadzenComponent.SetParametersAsync
RadzenComponent.OnAfterRenderAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenCard : RadzenComponentWithChildren, IComponent, IHandleEvent, IHandleAfterRenderBasic card with content:
<RadzenCard>
<RadzenText TextStyle="TextStyle.H6">Card Title</RadzenText>
<RadzenText>Card content goes here...</RadzenText>
</RadzenCard>
Card with custom variant:
<RadzenCard Variant="Variant.Outlined" Style="padding: 2rem;">
<RadzenImage Path="product.jpg" Style="width: 100%; height: 200px; object-fit: cover;" />
<RadzenText TextStyle="TextStyle.H5">Product Name</RadzenText>
<RadzenText>Product description...</RadzenText>
<RadzenButton Text="Buy Now" ButtonStyle="ButtonStyle.Primary" />
</RadzenCard>A card container component that groups related content with a consistent visual design and optional elevation. RadzenCard provides a versatile styled container for displaying information, images, actions, and other content in a structured format. Supports different visual variants (Filled, Flat, Outlined, Text) that affect the card's appearance. Works well in grid layouts (using RadzenRow/RadzenColumn) or can be stacked vertically. Ideal for grouping related information, creating dashboard widgets, displaying product information, or organizing form sections. Combine with other Radzen components like RadzenImage, RadzenText, and RadzenButton for rich card content.
public RadzenCard()Gets or sets the visual design variant of the card. Controls the card's appearance: Filled (solid background with elevation), Flat (subtle background), Outlined (border only), or Text (minimal styling).
public Variant Variant { get; set; }
| Type | Description |
|---|---|
| Variant | Gets or sets the visual design variant of the card. Controls the card's appearance: Filled (solid background with elevation), Flat (subtle background), Outlined (border only), or Text (minimal styling). |