Skip to contents

Create a Accordion component

Usage

calcite_accordion(...)

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
appearanceappearanceSpecifies the appearance of the component."solid" | "transparent"TRUE
iconPositionicon-positionSpecifies the placement of the icon in the header."end" | "start"TRUE
iconTypeicon-typeSpecifies the type of the icon in the header."caret" | "chevron" | "plus-minus"TRUE
scalescaleSpecifies the size of the component."l" | "m" | "s"TRUE
selectionModeselection-modeSpecifies the selection mode of the component, where: "multiple" allows any number of selections, "single" allows only one selection, and "single-persist" allows one selection and prevents de-selection."multiple" | "single" | "single-persist"TRUE

Slots

The following slots are provided by this component:

SlotDescription
Default (unnamed)A slot for adding calcite-accordion-items. calcite-accordion cannot be nested, however calcite-accordion-items can.

Examples

calcite_accordion()
#> <calcite-accordion></calcite-accordion>