Skip to content

Properties

PropertyTypeDescription
textReact.ReactNode(optional) The text content of the InfoCard, displayed/rendered in a paragraph. To fully customize the content, see children property.
titleReact.ReactNode(optional) The title of the InfoCard.
centeredboolean(optional) Centers the content. Defaults to false.
dropShadowboolean(optional) Sets the drop shadow of the info card. Defaults to true.
stretchboolean(optional) Stretch the card to fill the container.
classNamestring(optional) Custom className for the component root.
iconReact.ReactNode(optional) Custom icon. Defaults to the lightbulb icon.
imgPropsImgProps(optional) Image properties applied to the img element if the component is used to display an image.
altReact.ReactNode(optional) Used in combination with src to provide an alt attribute for the image element.
srcstring(optional) Specifies the path to the image.
skeletonboolean(optional) If set to true, an overlaying skeleton with animation will be shown. Defaults to false.
closeButtonTextReact.ReactNode(optional) The close button text.
closeButtonAttributesButtonProps(optional) define any valid Eufemia Button properties or HTML attribute inside an object.
acceptButtonTextReact.ReactNode(optional) The accept button text.
acceptButtonAttributesButtonProps(optional) define any valid Eufemia Button properties or HTML attribute inside an object.
childrenReact.ReactNode(optional) Can be used to add custom content, which is displayed/rendered between the text property and buttons.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.