Class MBCard
A Material Theme card with three elements: primary, primary action buttons and action icons.
Implements
Inherited Members
Namespace: Material.Blazor
Assembly: Material.Blazor.dll
Syntax
public class MBCard : ComponentFoundation, IDisposable
Properties
| Improve this Doc View SourceActionButtons
A render fragment where you place MBButtons as action buttons.
Declaration
public RenderFragment ActionButtons { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment |
ActionIcons
A render fragment where you place MBIconButtons as action icons.
Declaration
public RenderFragment ActionIcons { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment |
AutoStyled
Styles the primary and primary action sections with padding if set to True. This is optional and you can individually style the HTML in the primary and primary action render fragments if you prefer.
Declaration
public bool AutoStyled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
CardStyle
The card style - see MBCardStyle
Overrides CardStyle
Declaration
public MBCardStyle? CardStyle { get; set; }
Property Value
Type | Description |
---|---|
Nullable<MBCardStyle> |
NonSemanticContent
Non-semantic content that falls outside the
mdc-card__content
block. See https://github.com/material-components/material-components-web/tree/master/packages/mdc-card#non-semantic-content
Declaration
public RenderFragment NonSemanticContent { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment |
Primary
A render fragment for the primary section
Declaration
public RenderFragment Primary { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment |
PrimaryAction
A render fragment for the primary action section, which responds to Blazor events such as @onclick.
Declaration
public RenderFragment PrimaryAction { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment |
PrimaryActionAriaControls
The primary action's aria-controls attribute - defaults to "".
Declaration
public string PrimaryActionAriaControls { get; set; }
Property Value
Type | Description |
---|---|
String |
PrimaryActionAriaSelected
The primary action's aria-selected attribute - defaults to false.
Declaration
public bool PrimaryActionAriaSelected { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
PrimaryActionRole
The primary action's role attribute - defaults to "".
Declaration
public string PrimaryActionRole { get; set; }
Property Value
Type | Description |
---|---|
String |
PrimaryActionTabIndex
The primary action's tabindex attribute - defaults to 0.
Declaration
public int PrimaryActionTabIndex { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceOnInitializedAsync()
Declaration
protected override async Task OnInitializedAsync()
Returns
Type | Description |
---|---|
Task |