patternfly_dioxus/
card.rs

1use dioxus::prelude::*;
2
3#[allow(non_snake_case,dead_code)]
4#[inline_props]
5pub fn PfCard<'a>(cx: Scope<'a>, children: Element<'a>) -> Element {
6    cx.render(rsx! {
7        div { class: "pf-c-card", children }
8    })
9}
10
11#[allow(non_snake_case,dead_code)]
12#[inline_props]
13pub fn PfCardTitle<'a>(cx: Scope<'a>, children: Element<'a>) -> Element {
14    cx.render(rsx! {
15        div { class: "pf-c-card__title", children }
16    })
17}
18
19#[allow(non_snake_case,dead_code)]
20#[inline_props]
21pub fn PfCardBody<'a>(cx: Scope<'a>, children: Element<'a>) -> Element {
22    cx.render(rsx! {
23        div { class: "pf-c-card__body", children }
24    })
25}
26
27#[allow(non_snake_case)]
28#[inline_props]
29pub fn PfCardFooter<'a>(cx: Scope<'a>, children: Element<'a>) -> Element {
30    cx.render(rsx! {
31        div { class: "pf-c-card__footer", children }
32    })
33}