Skip to content

CardMedia

An optional decorative element that allows you to include an image that matches the card context.


When assigning a rule to a property of CardMedia, the rule will be passed an instance of the following proxy class as an argument:


CardMedia Properties

Property Type Required Default
Image Image No
Styles object No
Visible boolean No true
_Name string No
_Type const No

Image

Image to be displayed above card header in the card.


Styles

Style to be applied on the card media.

  • type: object with following properties.
Property Type Required Default
Image string No
Media string No

Image

The string value is a style class name for Image.

Media

Supported in iOS only. The string value is a style class name for Media.


Visible

  • type: boolean
  • default: true

_Name

  • type: string

_Type

  • type: const

The value of this property must be:

"Card.Type.Media"