adam_web_ui/components/card/mod.rs
1//! Groups related content into a bordered card surface.
2//!
3//! Compose [`Card`] with [`CardHeader`], [`CardTitle`], [`CardDescription`],
4//! [`CardAction`], [`CardContent`], and [`CardFooter`] slots. Each slot renders
5//! its upstream `data-slot` attribute and a scoped class so callers can target
6//! layout from either Rust or CSS without reaching into the control's markup.
7//!
8//! # Examples
9//! ```
10//! use adam_web_ui::components::card::{Card, CardContent, CardHeader, CardTitle};
11//! use dioxus::prelude::*;
12//! fn app() -> Element {
13//! rsx! {
14//! Card {
15//! CardHeader { CardTitle { "Inspector" } }
16//! CardContent { "Body" }
17//! }
18//! }
19//! }
20//! ```
21mod component;
22pub use component::*;