Class Sealed
public sealed class CardBlock : ContainerBlock

Namespace: Moka.Docs.Parsing.Markdown

Represents a card component block.

Inheritance

Inherits from: ContainerBlock

Constructors

NameDescription
CardBlock(BlockParser parser) Represents a card component block.

CardBlock(BlockParser parser)

CardBlock.CardBlock(BlockParser parser)

Represents a card component block.

Properties

NameDescription
Icon Optional icon name.
Title Card title from the title attribute.
Variant Card variant: default, info, success, warning.

Icon

string? CardBlock.Icon { get; set; }

Optional icon name.

Title

string? CardBlock.Title { get; set; }

Card title from the title attribute.

Variant

string CardBlock.Variant { get; set; }

Card variant: default, info, success, warning.

Type Relationships
classDiagram
                    style CardBlock fill:#f9f,stroke:#333,stroke-width:2px
                    CardBlock --|> ContainerBlock : inherits
                
View Source
#region AST Blocks
/// <summary>
///     Represents a card component block.
/// </summary>
public sealed class CardBlock(BlockParser parser) : ContainerBlock(parser)
{
    /// <summary>Card title from the title attribute.</summary>
    public string? Title { get; set; }
    /// <summary>Optional icon name.</summary>
    public string? Icon { get; set; }
    /// <summary>Card variant: default, info, success, warning.</summary>
    public string Variant { get; set; } = "default";
}
Was this page helpful?