Loading...
Loading...
Build responsive card layouts with Syncfusion Blazor Card component. Use this when creating reusable card containers with headers, images, content, action buttons, and custom styling. This skill covers setup, structure, layouts, interactivity, and advanced customization.
npx skill4agent add syncfusion/blazor-ui-components-skills syncfusion-blazor-cardCardHeaderCardContentCardImageCardFooter@using Syncfusion.Blazor.Cards
<SfCard>
<CardHeader Title="Welcome" SubTitle="Getting Started"></CardHeader>
<CardContent Content="This is a basic Syncfusion Blazor Card component with header and content."></CardContent>
</SfCard>@using Syncfusion.Blazor.Cards
@using Syncfusion.Blazor.Buttons
<SfCard>
<CardImage Image="images/card.png"/>
<CardHeader Title="Product Title" SubTitle="by Company"></CardHeader>
<CardContent Content="Description of the product goes here with key features and benefits."></CardContent>
<CardFooter>
<CardFooterContent>
<SfButton CssClass="e-btn e-outline e-primary">BUY NOW</SfButton>
<SfButton CssClass="e-btn e-outline">DETAILS</SfButton>
</CardFooterContent>
</CardFooter>
</SfCard>@using Syncfusion.Blazor.Cards
<SfCard Orientation="CardOrientation.Horizontal">
<CardStacked>
<CardHeader Title="Syncfusion Card" />
<CardContent Content="The Syncfusion Blazor Card component is used to display content in organized containers." />
</CardStacked>
<img src="images/card-image.png" alt="Card" />
</SfCard><SfCard>
<CardImage Image="product.png"/>
<CardHeader Title="Product Name" SubTitle="$49.99"/>
<CardContent Content="High-quality product description with key features."/>
<CardFooter>
<CardFooterContent>
<SfButton CssClass="e-btn e-primary">ADD TO CART</SfButton>
</CardFooterContent>
</CardFooter>
</SfCard><SfCard>
<CardHeader Title="John Doe" SubTitle="UI Designer" ImageUrl="avatar.png"/>
<CardContent Content="Creative designer with 5+ years experience in web and mobile design."/>
<CardFooter>
<CardFooterContent>
<SfButton CssClass="e-btn e-outline">FOLLOW</SfButton>
<SfButton CssClass="e-btn e-outline">MESSAGE</SfButton>
</CardFooterContent>
</CardFooter>
</SfCard><SfCard>
<CardHeader Title="City Information" />
<CardContent EnableSeparator="true">
<strong>Sydney</strong><br/>
Capital of New South Wales, Australia
</CardContent>
<CardContent EnableSeparator="true">
<strong>Location</strong><br/>
East coast of Australia
</CardContent>
<CardContent EnableSeparator="true">
<strong>Population</strong><br/>
Approximately 4 million residents
</CardContent>
</SfCard>| Component | Purpose |
|---|---|
| Root card container with optional Orientation property |
| Displays Title, SubTitle, and optional ImageUrl |
| Renders image elements within card |
| Contains text and HTML content with optional EnableSeparator |
| Footer section for action buttons |
| Container for footer content (buttons) |
| Creates vertical section in horizontal cards |
| Property | Values | Purpose |
|---|---|---|
| | Arranges card elements |
| string | Unique identifier for card |
| string | Card header main title |
| string | Card header subtitle |
| string | Path to header image |
| string | Card content text |
| true/false | Adds divider between sections |
| string | CardImage source path |