Skip to main content

Card

Function Card 

Source
pub fn Card(_: CardProps) -> Element
Expand description

Renders the card surface, grouping its children inside a bordered, rounded container.

  • Complexity: O(attributes + children) render work.

§Examples

use adam_web_ui::components::card::{Card, CardContent};
use dioxus::prelude::*;
fn app() -> Element {
    rsx! { Card { CardContent { "Body" } } }
}

§Props

For details, see the props struct definition.