TopicCard
TopicCards are used to display a collection of topics or categories that users can explore. Each card contains an icon, title, description, and an action button to start exploring the topic. By default, TopicCards are not responsive. However, you can use the TopicCard.Container
component to wrap multiple TopicCard
components and apply a responsive layout to them.
Within a TopicCardContainer
The TopicCard.Container
component is used to wrap multiple TopicCard
components and apply a responsive layout to them. The TopicCardContainer will apply columns based on the lg
and md
breakpoints. By default, the lg
breakpoint is set to 4 columns and the md
breakpoint is set to 3 columns. Once the size of the viewport is smaller than the md
breakpoint, the cards will be displayed in a single column.
Custom mobile breakpoints
You can set custom breakpoints for the TopicCard.Container
component by passing a string to the mdBreakpoint
or smBreakpoints
props.