pub struct CardProps<'__a> {
pub attrs: Attributes,
pub child: Child<'__a>,
}Expand description
A bordered panel that groups related content.
Pass a header, body, footer, or table as children. A table at either end of the
card sits against that edge, without padding. attrs adds attributes and classes
to the card’s <div>.
ⓘ
view! {
card(
attrs: attributes! { class="max-w-sm" },
card_header(
card_title("Delete workspace")
card_description("This cannot be undone.")
)
card_footer(
attrs: attributes! { class="justify-end" },
button(variant: ButtonVariant::Destructive, "Delete")
)
)
}Fields§
§attrs: Attributes§child: Child<'__a>Implementations§
Source§impl<'__a> CardProps<'__a>
impl<'__a> CardProps<'__a>
Sourcepub fn builder() -> CardPropsBuilder<'__a>
pub fn builder() -> CardPropsBuilder<'__a>
Returns a CardPropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl<'__a> !RefUnwindSafe for CardProps<'__a>
impl<'__a> !Sync for CardProps<'__a>
impl<'__a> !UnwindSafe for CardProps<'__a>
impl<'__a> Freeze for CardProps<'__a>
impl<'__a> Send for CardProps<'__a>
impl<'__a> Unpin for CardProps<'__a>
impl<'__a> UnsafeUnpin for CardProps<'__a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more