Expand description
Groups related content into a bordered card surface.
Compose Card with CardHeader, CardTitle, CardDescription,
CardAction, CardContent, and CardFooter slots. Each slot renders
its upstream data-slot attribute and a scoped class so callers can target
layout from either Rust or CSS without reaching into the control’s markup.
§Examples
use adam_web_ui::components::card::{Card, CardContent, CardHeader, CardTitle};
use dioxus::prelude::*;
fn app() -> Element {
rsx! {
Card {
CardHeader { CardTitle { "Inspector" } }
CardContent { "Body" }
}
}
}Re-exports§
pub use Card_completions::Component::Card;pub use CardHeader_completions::Component::CardHeader;pub use CardTitle_completions::Component::CardTitle;pub use CardDescription_completions::Component::CardDescription;pub use CardAction_completions::Component::CardAction;pub use CardContent_completions::Component::CardContent;
Structs§
- Card
Action Props - Properties for the
CardActioncomponent. - Card
Content Props - Properties for the
CardContentcomponent. - Card
Description Props - Properties for the
CardDescriptioncomponent. - Card
Footer Props - Properties for the
CardFootercomponent. - Card
Header Props - Properties for the
CardHeadercomponent. - Card
Props - Properties for the
Cardcomponent. - Card
Title Props - Properties for the
CardTitlecomponent.
Functions§
- Card
- Renders the card surface, grouping its children inside a bordered, rounded container.
- Card
Action - Renders the card header’s action slot, placed in the header’s trailing column.
- Card
Content - Renders the card’s main content region beneath its optional header.
- Card
Description - Renders the card’s secondary description text beneath its title.
- Card
Footer - Renders the card’s footer region beneath its content.
- Card
Header - Renders the card’s header region, placing an optional
CardActionin its own column. - Card
Title - Renders the card’s title text with the official heading weight and line height.