card_with_image

Function card_with_image 

Source
pub fn card_with_image(
    img_src: &str,
    img_alt: &str,
    title: &str,
    text: &str,
) -> Element<Div>
Expand description

Create a card with image on top (from Bootstrap docs).

Generates:

<div class="card" style="width: 18rem;">
  <img src="..." class="card-img-top" alt="...">
  <div class="card-body">
    <h5 class="card-title">Card title</h5>
    <p class="card-text">Some text...</p>
  </div>
</div>