lustre/prefab/card
Card component for lustre_prefab.
A card is a container with a white background, rounded border, and shadow. Based on Clarity Design System card patterns.
Values
pub fn view(
extra_attrs: List(@internal Attribute(@internal Aligned, msg)),
content: stylish.Element(msg),
) -> stylish.Element(msg)
A card is a container with a white background, a rounded border, and a shadow.
Example
card.view([],
el.text("Card content")
)