Skip to contents

Create a Card component

Usage

calcite_card(...)

Arguments

...

named attributes passed to htmltools::tag()

Value

an object of class calcite_component which is a subclass of shiny.tag

Details

Properties

The following properties are provided by this component:

NameAttributeDescriptionValuesReflects to Attribute
disableddisabledWhen true, interaction is prevented and the component is displayed with lower opacity.booleanTRUE
labellabelAccessible name for the component.stringFALSE
loadingloadingWhen true, a busy indicator is displayed.booleanTRUE
messageOverridesNAUse this property to override individual strings used by the component.Check API referenceFALSE
selectableselectableWhen true, the component is selectable.booleanTRUE
selectedselectedWhen true, the component is selected.booleanTRUE
thumbnailPositionthumbnail-positionSets the placement of the thumbnail defined in the thumbnail slot."block-end" | "block-start" | "inline-end" | "inline-start"TRUE

Events

The following events are observed by shiny:

EventDescription
calciteCardSelectFires when the deprecated selectable is true, or selectionMode set on parent calcite-card-group is not none and the component is selected.

Slots

The following slots are provided by this component:

SlotDescription
Default (unnamed)A slot for adding content.
titleDeprecated use heading instead. A slot for adding a heading.
subtitleDeprecated use description instead. A slot for adding a description.
thumbnailA slot for adding a thumbnail.
headingA slot for adding a heading.
descriptionA slot for adding a description.
footer-startA slot for adding a leading footer.
footer-endA slot for adding a trailing footer.

Examples

calcite_card()
#> <calcite-card></calcite-card>