# Default Cards

Rich cards are complex attachment messages that can contain additional message styling, templates, and images. The **RadChat** control supports the default **[heroCards](https://docs.botframework.com/en-us/node/builder/chat-reference/classes/_botbuilder_d_.herocard.html)** template which can be displayed in the chat flow when calling the `renderAttachments` method of the control and pass `heroCard` as a value for the `contentType` property of an attachment.

> caption **Figure 1**: A default HeroCard template.

![chat with heroCard template](https://www.telerik.com/products/aspnet-ajax/documentation/assets/d1aaf6a2d6f6038b87803d5357cbc0b9/chat-herocard.png)

```ASP.NET
<telerik:RadChat runat="server" ID="RadChat1">
    <ClientEvents OnLoad="OnLoad"/>
    <MessagesSettings Placeholder="Type your message here..." />
    <UserSettings Name="John" IconUrl="avatar.png" />
</telerik:RadChat>
```

```JavaScript
function OnLoad(sender, args) {
    var chat = sender;
    chat.renderAttachments({
        attachments: [{
            contentType: "heroCard",
            content: {
                title: "Attachment Title",
                subtitle: "Attachment Subtitle",
                text: "Some sample text to be shown inside the attachment to illustrate the image above.",
                images: [{
                    url: "mountain.png",
                    alt: "mountain"
                }]
            }
        }],
        attachmentLayout: "carousel"
    }, chat.get_user());
}
```

The layout of a collection of attachments can be:

* **Carousel** - displays multiple cards *horizontally*. In this mode, you can browse the available cards with left/right swipe or with a click on a card and dragging sideways;
* **List** - displays multiple cards *vertically*;

> caption **Figure 2**: A Carousel cards layout.

![carousel](https://www.telerik.com/products/aspnet-ajax/documentation/assets/4cd637f6b8c29e55b71a8fd80e2fd75d/chat-card-carousel.png)

> caption **Figure 3**: A List cards layout.

![list](https://www.telerik.com/products/aspnet-ajax/documentation/assets/e258044eb2ff7497ee58bdbcb09cadee/chat-card-list.png)

To further customize the appearance of a card, you can also use [Custom Templates](https://www.telerik.com/products/aspnet-ajax/documentation/controls/chat/functionality/templates) and [Custom Components](https://www.telerik.com/products/aspnet-ajax/documentation/controls/chat/functionality/components) articles.

## See Also

* [RadChat Structure](https://www.telerik.com/products/aspnet-ajax/documentation/controls/chat/structure)

* [RadChat Server-Side Programming](https://www.telerik.com/products/aspnet-ajax/documentation/controls/chat/server-side-programming/overview)

* [RadChat Client-Side Programming](https://www.telerik.com/products/aspnet-ajax/documentation/controls/chat/client-side-programming/overview)

* [RadChat Online Demos](https://demos.telerik.com/aspnet-ajax/chat)
