InfoCard

InfoCard is a component for displaying informational content in a card format. It uses a moderate visual style and is typically used for non-urgent informational messages.

Read more about this component in the Aksel documentation.

Good to know

InfoCard is used to display informational content in a card format. It has a moderate visual style and is typically used for non-urgent informational messages.

Properties

InfoCard

PropertyDescriptionDefault
Control
Properties
"data-color"

Sets the color theme of the InfoCard.

unknown
-
as

Changes the HTML element used for the root element.

When using section, provide either aria-label or aria-labelledby for better accessibility. axe-core might warn about unique landmarks if you have multiple InfoCards on page with the same label. In those cases consider updating to unique aria-label or aria-labelledby props.

"div" "section"
"div"
Snippets
children

InfoCard content.

 -

Properties included from: Omit<BaseAlertProps, "global" | "type" | "status">

InfoCardHeader

InfoCardHeader is the header section of an InfoCard, containing the icon and title. Unlike GlobalAlertHeader and LocalAlertHeader, InfoCardHeader requires you to provide an icon.

PropertyDescriptionDefault
Control
Snippets
children

Header content (typically Title and optionally CloseButton).

 -
icon

Custom icon to display in the header. If not provided, a default icon based on status is used.

 -

Properties included from: Omit<HTMLAttributes<HTMLDivElement>, "children">

InfoCardTitle

InfoCardTitle is the title component for InfoCard. Remember to use correct heading-level with the as prop.

PropertyDescriptionDefault
Control
Properties
as

Changes the HTML element used for the title.

"h2" "h3" "h4" "h5" "h6" "div"
-
Snippets
children

Title content.

 -

Properties included from: Omit<HTMLAttributes<HTMLHeadingElement>, "children">

InfoCardContent

InfoCardContent is the content section of an InfoCard, containing the main message text.

PropertyDescriptionDefault
Control
Snippets
children

Content of the alert.

 -

Properties included from: Omit<HTMLAttributes<HTMLDivElement>, "children">