Skip to contents

Create a Action component

Usage

calcite_action(...)

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 highlighted.booleanTRUE
alignmentalignmentSpecifies the horizontal alignment of button elements with text content."center" | "end" | "start"TRUE
appearanceappearanceSpecifies the appearance of the component."solid" | "transparent"TRUE
compactcompactWhen true, the side padding of the component is reduced.booleanTRUE
disableddisabledWhen true, interaction is prevented and the component is displayed with lower opacity.booleanTRUE
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
indicatorindicatorWhen true, displays a visual indicator.booleanTRUE
labellabelSpecifies the label of the component. If no label is provided, the label inherits what's provided for the text prop.stringFALSE
loadingloadingWhen true, a busy indicator is displayed.booleanTRUE
messageOverridesNAUse this property to override individual strings used by the component.Check API referenceFALSE
scalescaleSpecifies the size of the component."l" | "m" | "s"TRUE
texttextSpecifies text that accompanies the icon.stringFALSE
textEnabledtext-enabledIndicates whether the text is displayed.booleanTRUE

Slots

The following slots are provided by this component:

SlotDescription
Default (unnamed)A slot for adding a calcite-icon.
tooltipDeprecated Use the calcite-tooltip component instead.

Examples

calcite_action()
#> <calcite-action></calcite-action>