Expand description
Bootstrap card components.
Provides type-safe Bootstrap cards matching the Bootstrap cards documentation.
§Example
use ironhtml_bootstrap::cards::*;
// Simple card
let simple = card(|c| c.text("Card content"));
assert!(simple.render().contains(r#"class="card"#));
// Card with title and text (from Bootstrap docs)
let doc_card = card_simple("Card title", "Some text", "Go", "#");
assert!(doc_card.render().contains("card-title"));
assert!(doc_card.render().contains("card-text"));Functions§
- card
- Create a basic Bootstrap card.
- card_
border - Create a card with border color.
- card_
colored - Create a colored card (text-bg-{color}).
- card_
simple - Create a card with title and text (from Bootstrap docs example).
- card_
width - Create a card with specific width.
- card_
with_ header_ footer - Create a card with header and footer.
- card_
with_ image - Create a card with image on top (from Bootstrap docs).