Card
Last updated
Last updated
Returns a component that has a Card design with a predefined look and an ability to change some parts of it
The card portal has a main part that is not so configurable with a headline, subheadline and an image part. In order to not render subheadline or images, just don't send any values in to these.
Header and footer part is totally up the plugin requiring the portal to handle. Here you are able to render what ever suits your needs.
First of you need to register a requirement for your plugin to use a portal, you can read more about it here.
Property
Description
Default
title
Value to use in title attribute on element
dragData
Object containing data that will be able to be parsed on drag and drop, if this is passed the cards will get draggable attribute set to true
onClick
A function that will get triggered when a click occurs on the card
striped
If the status bar will have a striped look
false
displayStatusBar
If the card should display a status bar to the left or not
false
styleObject
A object containing a style scheme for the card
object
headline
The headline of the card
subheadline
The subheadline fo the card
images
An array containing image sources
headerContent
A valid react element to render in the header part
footerContent
A valid react element to render in the footer part
imageMaxWidth
An integer representing the max width the image can have
imageMaxHeight
An integer representing the max height the image can have