Skip to contents

Create a BlockSection component

Usage

calcite_block_section(...)

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
iconEndicon-endSpecifies an icon to display at the end of the component.stringTRUE
iconFlipRtlicon-flip-rtlDisplays the iconStart and/or iconEnd as flipped when the element direction is right-to-left ("rtl")."both" | "end" | "start"TRUE
iconStarticon-startSpecifies an icon to display at the start of the component.stringTRUE
messageOverridesNAUse this property to override individual strings used by the component.Check API referenceFALSE
openopenWhen true, expands the component and its contents.booleanTRUE
statusstatusDisplays a status-related indicator icon."idle" | "invalid" | "valid"TRUE
texttextThe component header text.stringFALSE
toggleDisplaytoggle-displaySpecifies how the component's toggle is displayed, where: "button" sets the toggle to a selectable header, and "switch" sets the toggle to a switch."button" | "switch"TRUE

Events

The following events are observed by shiny:

EventDescription
calciteBlockSectionToggleFires when the header has been clicked.

Slots

The following slots are provided by this component:

SlotDescription
Default (unnamed)A slot for adding custom content.

Examples

calcite_block_section()
#> <calcite-block-section></calcite-block-section>