Cards
CardControl · CardGroupControl · CarouselControlShow products, places or people as cards, in a grid or a carousel.
Overview
CardControl is a Blazor card: a bordered box with an optional header, image, body and footer for one item. Use cards for items users browse and compare: CardGroupControl wraps several in one fx-card-group element that you lay out with your own CSS, as the card group example does with a wrapping grid of equal heights, and CarouselControl shows one card at a time, with arrows and dots to move between them.
Examples
#Card with image, header and footer
Send the quote from the card's footer and its badge and subtitle follow; pick an elevation to compare the shadows; None (Elevation 0) leaves only the border.
Quote LIS-0001 Lisbon city break
Quoted · 3 lines · $1,720
Return flights, four nights in an old-town hotel and a guided food tour.
#Card group
Pick a status to filter the quotes. CardGroupControl renders a plain <div>, so the example lays the cards out itself with one rule, .quotes ::deep .fx-card-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }, which keeps the remaining cards in equal heights and drops to two columns, then one, as the window narrows.
Amalfi coast drive, 9 lines, $6,240.
Cape winelands, 8 lines, $8,150.
Kyoto long weekend, 6 lines, $4,860.
Lisbon city break, 3 lines, $1,720.
Lisbon Explorer, 5 lines, $3,480.
Hoi An lantern trail, 7 lines, $5,310.
#Carousel of destination cards
Use the arrows, the dots or the buttons below, which call Prev(), Next() and SelectSlide(0). Go to sets the bound ActiveIndex from the page, and Next on the last card wraps to the first.