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 content displayed in the body of the card.

Implements global attributes.

CardDescription

Description of the card content.

Implements global attributes.

CardFooter

Contains card footer content displayed at the bottom of the card.

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.