Skip to contents

Create a Tile component

Usage

calcite_tile(...)

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
activeactiveWhen true, the component is active.booleanTRUE
alignmentalignmentSpecifies the alignment of the Tile's content."center" | "start"TRUE
descriptiondescriptionA description for the component, which displays below the heading.stringTRUE
disableddisabledWhen true, interaction is prevented and the component is displayed with lower opacity.booleanTRUE
embedembedThe component's embed mode. When true, renders without a border and padding for use by other components.booleanTRUE
headingheadingThe component header text, which displays between the icon and description.stringTRUE
hrefhrefWhen embed is "false", the URL for the component.stringTRUE
iconiconSpecifies an icon to display.stringTRUE
iconFlipRtlicon-flip-rtlWhen true, the icon will be flipped when the element direction is right-to-left ("rtl").booleanTRUE
labellabelAccessible name for the component.stringFALSE
scalescaleSpecifies the size of the component."l" | "m" | "s"TRUE
selectedselectedWhen true and the parent's selectionMode is "single", "single-persist"', or "multiple"`, the component is selected.booleanTRUE

Events

The following events are observed by shiny:

EventDescription
calciteTileSelectFires when the selected state of the component changes.

Slots

The following slots are provided by this component:

SlotDescription
content-topA slot for adding non-actionable elements above the component's content. Content slotted here will render in place of the icon property.
content-bottomA slot for adding non-actionable elements below the component's content.
content-startDeprecated use content-top slot instead. A slot for adding non-actionable elements before the component's content.
content-endDeprecated use content-bottom slot instead. A slot for adding non-actionable elements after the component's content.

Examples

calcite_tile()
#> <calcite-tile></calcite-tile>