Card

Displays a card with header, content, and footer.

Log in to your account

Enter your details below to log in to your account

Don't have an account? Sign up

Anatomy

Import all parts and piece them together.

use leptos::prelude::*;
use singlestage::card::*;

#[component]
pub fn CardAnatomy() -> impl IntoView {
    view! {
        <Card>
            <CardHeader>
                <CardTitle />
                <CardDescription />
            </CardHeader>
            <CardContent />
            <CardFooter />
        </Card>
    }
}

API Reference

Card

Contains all the parts of a card.

Implements global attributes.

CardContent

Contains the content displayed in the card body.

Implements global attributes.

CardDescription

A summary that describes the card content.

Implements global attributes.

CardFooter

Contains card footer content.

Implements global attributes.

CardHeader

Renders at the top of the card. Contains the card title and card description.

Implements global attributes.

CardTitle

The title of the card.

Implements global attributes.