Cards are an extremely popular element of modern UI systems. Their flexibility as content containers is what makes them so attractive in web apps. Beautifully display the articles in your blog, the menu in a restaurant app or the destinations in a travel agency’s site with the Telerik UI for Blazor Card component.
The layout of a Card component consists of multiple building blocks, including placeholders for header, image, body, footer, and a list of actions. You can choose the blocks you need to create the perfect layout for your use case. The cards can be organized in different containers—like a list or deck—to change the direction in which cards are laid out.
The Card’s orientation can be easily switched by changing the Orientation attribute. Cards default to Vertical and display the image beneath the body. When in horizontal, the image is displayed to the left of the body.
If you store your cards’ data in an enumerable container, you can render all cards corresponding to that data by doing a @foreach in your Razor code.
The Card component can also contain an expandable header. This flexibility allows you to display multiple cards at the same time. Another element you can control are the actions on the bottom of the component, which can be configured in relation to the cards.