Edit page

Card

A card is a sheet of material that serves as an entry point to more detailed information.

Import Syntax

Basic Usage

Bridge Club, 1954
Florida, January 1954

Card with Image

Cards can have full-bleed images with optional captions.

Shaped Cards

Bridge Club, 1942

Another class shaped allows for a stylized version of the card meant to work with geometrically-shaped images.

With Bar

Card with Colored Bar

Every color in calcite can be used as a colored "bar" along the top of a card to provide a bit of visual punch with bar=" {color}"

Card with Colored Bar

Every color in calcite can be used as a colored "bar" along the top of a card to provide a bit of visual punch with bar=" {color}"

Card with Colored Bar

Every color in calcite can be used as a colored "bar" along the top of a card to provide a bit of visual punch with bar=" {color}"

Card with Colored Bar

Every color in calcite can be used as a colored "bar" along the top of a card to provide a bit of visual punch with bar=" {color}"

Wide Cards

Bridge Club, 1954
Florida, January 1954

Wide Cards

Wide cards are just like standard cards except that they are displayed in landscape orientation. This is useful in situations where there is too much content to display well in a standard card.

Generally, wide cards are meant to be displayed one-up, not grouped.

Props

Card default

PropertyTypeRequiredDefaultDescription
childrenNodefalse-The content of the component.
barStringfalse-Style prop to show a colored bar across the top of the Card; can take a string for any color name in EsriColors.
shapedBoolfalse-Style prop to add a shape mask to the CardImage.
wideBoolfalse-Style prop to position Card content horizontally and fill the width of its container.

CardContent

PropertyTypeRequiredDefaultDescription
childrenNodefalse-The content of the component.

CardImage

PropertyTypeRequiredDefaultDescription
srcStringfalse-The HTML src property of the CardImage.
captionStringfalse-The text content of the figure caption on the CardImage.
altStringfalse-The HTML alt property of the component.

CardTitle

PropertyTypeRequiredDefaultDescription
childrenNodefalse-The content of the component.