Skip to content

Properties

PropertiesDescription
text(required) The content of the InfoCard can be a string or a react element.
title(optional) The card title is of type string.
centered(optional) Centers the content. Defaults to false.
className(optional) Custom className for the component root.
icon(optional) Custom icon. Defaults to the lightbulb icon.
imgProps(optional)Image properties applied to the img element if the component is used to display an image.
alt(optional) Used in combination with src to provide an alt attribute for the image element.
src(optional) Specifies the path to the image.
skeleton(optional) Applies loading skeleton.
closeButtonText(optional) The close button text.
closeButtonAttributes(optional) define any valid Eufemia Button properties or HTML attribute inside an object.
onClose(optional) A function called when the user clicks the close button.
acceptButtonText(optional) The accept button text.
acceptButtonAttributes(optional) define any valid Eufemia Button properties or HTML attribute inside an object.
onAccept(optional) A function called when the user clicks the accept button.
Space(optional) spacing properties like top or bottom are supported.