Class MudCard
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
Represents a block of content which can include a header, image, content, and actions.
public class MudCard : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
- Inheritance
-
MudCard
- Implements
- Inherited Members
- Extension Methods
Constructors
MudCard()
public MudCard()
Properties
ChildContent
The content within this component.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Classname
protected string Classname { get; }
Property Value
Elevation
The size of the drop shadow.
[Parameter]
[Category("Appearance")]
public int Elevation { get; set; }
Property Value
Remarks
Defaults to 1
. A higher number creates a heavier drop shadow. Use a value of 0
for no shadow.
Outlined
Displays an outline.
[Parameter]
[Category("Appearance")]
public bool Outlined { get; set; }
Property Value
Remarks
Defaults to false
. This property is useful to differentiate cards which are the same color or use images.
Square
Disables rounded corners.
[Parameter]
[Category("Appearance")]
public bool Square { get; set; }
Property Value
Remarks
Defaults to false
.
Can be overridden by Rounded.
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder