Skip to content
Enact

limestone/Card

Provides Limestone styled card components and behaviors.

Loading Live Preview

A Limestone-styled Card.

Usage:

<Card
  src="https://placehold.co/100x100/9037ab/ffffff/png?text=Image0"
  label="A secondary caption"
>
 The primary caption
</Card>

Extends: limestone/Cardlimestone/Card.CardBase
Wrapped with: limestone/Cardlimestone/Card.CardDecorator

A Limestone styled base component for limestone/Cardlimestone/Card.Card.

Extends: ui/Cardui/Card.Card

Properties
StringObject

Source for the image. String value or Object of values used to determine which image will appear on a specific screenSize.


The "aria-label" for the Card.


Array(String)Array(Object)

Sources for the image icon.

An array of String values or Objects of values used to determine which image will appear on a specific screenSize. This prop is only used when orientation is 'vertical'.


The size of the caption images.

The following properties should be provided:

  • height - The height of the image

  • width - The width of the image

Default: {height: 96, width: 96}

Determines whether the caption will overflow the card container or not. It only applies when orientation is 'vertical' and captionOverlay and captionOverlayOnFocus is false.


Boolean

Determines whether the caption will overflow the card container and show only on card focus. It only applies when orientation is 'vertical' and captionOverlay and captionOverlayOnFocus is false.


Determines whether the caption will be placed over the image or not. It only applies when orientation is 'vertical'.


Boolean

Determines whether the caption will be placed over the image and shown only on card focus. It only applies when orientation is 'vertical'.


Centers the captions when imageIconSrc is not provided.


Centers the title and imageIconSrc horizontally and vertically. It only applies when captionOverlay or captionOverlayOnFocus is true.


The primary caption displayed with the image.


Customizes the component by mapping the supplied collection of CSS class names to the corresponding internal elements and states of this component.


Disables Card and becomes non-interactive.


Media's entire duration in seconds.


Determines whether the Duration will be placed over the image or not.


Fits the image to its height and width and positions it on the center of the Card.


Set to true to display a container with background color. When orientation is 'horizontal', this prop is always true and provided value will be ignored.


Icon used when selected is true

Default: 'check'

StringObjectElement

Source for the image icon.

String value or element or Object of values used to determine which image will appear on a specific screenSize. This prop is only used when orientation is 'vertical' or centeredTitle is true.


The size of the image.

The following properties should be provided:

  • height - The height of the image

  • width - The width of the image

Default: {height: 432, width: 768}

A secondary caption displayed with the image.


ElementArray(Element)

Icons to be included with the secondary caption.

Typically, up to 3 icons are used.


'horizontal''vertical'

The layout orientation of the component.

Default: 'vertical'

A placeholder image to be displayed before the image is loaded.


ElementString

The primary badge.


ObjectNumber

The size of the primary badge. Can be a number or an object with specific dimensions. The following properties should be provided for the object:

  • height - The height of the badge

  • width - The width of the badge

Default: {width: 108, height: 108}

The progress displayed inside the ProgressBar


Determines whether the ProgressBar will be placed over the image or not.


Set to true to display the image with rounded corners.


ElementString

The secondary badge.


ObjectNumber

The size of the secondary badge. Can be a number or an object with specific dimensions. The following properties should be provided for the object:

  • height - The height of the badge

  • width - The width of the badge

Default: {width: 108, height: 108}

A ternary caption displayed with the image.


ElementArray(Element)

Icons to be included with the ternary caption.

Typically, up to 3 icons are used.


Applies a selected visual effect to the image.


Activates the 'Duration'.


Activates the 'ProgressBar'.


Splits the captions in two sections. This prop is only used when captionOverlayOnFocus or captionOverlay is true and orientation is 'vertical'.


Removes the marquee effect of caption and label text.

Limestone-specific card behaviors to apply to limestone/Cardlimestone/Card.Card.

Includes: limestone/Marqueelimestone/Marquee.MarqueeController
Includes: spotlight/Spottablespotlight/Spottable.Spottable
Includes: limestone/Skinnablelimestone/Skinnable.Skinnable