patternfly_yew/components/card/header/
main.rs

1use yew::prelude::*;
2
3#[derive(Debug, Clone, PartialEq, Properties)]
4pub struct CardHeaderMainProperties {
5    /// Contents rendered inside the Card Header Main
6    #[prop_or_default]
7    pub children: Html,
8    /// Additional classes added to the Card Header Main
9    #[prop_or_default]
10    pub class: Classes,
11}
12
13#[function_component(CardHeaderMain)]
14pub fn actions(props: &CardHeaderMainProperties) -> Html {
15    let mut class = props.class.clone();
16    class.push("pf-v5-c-card__header-main");
17    html! {
18        <div {class}>{props.children.clone()}</div>
19    }
20}