ant-design-blazor/components/card/CardMeta.razor
Henry.zhang f9b615c2ca feat: add more demos (#197)
...for affix,back-top,breadcrumb,card,divider,typogragpy and timeline

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-07 19:41:00 +08:00

46 lines
939 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
<div class="@ClassMapper.Class" style="@Style" id="@Id">
@if (Avatar != null)
{
<div class="ant-card-meta-avatar">
@Avatar
</div>
}
@if (Title != null || Description != null)
{
<div class="ant-card-meta-detail">
@if (Title != null)
{
<div class="ant-card-meta-title">
@Title
</div>
}
@if (Description != null)
{
@Description
}
</div>
}
</div>
@code{
[Parameter]
public RenderFragment Title { get; set; }
[Parameter]
public RenderFragment Description { get; set; }
[Parameter]
public RenderFragment Avatar { get; set; }
protected override void OnInitialized()
{
base.OnInitialized();
ClassMapper.Add("ant-card-meta");
}
}