Skip to contents

Create a Icon component

Usage

calcite_icon(...)

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
flipRtlflip-rtlWhen true, the icon will be flipped when the element direction is right-to-left ("rtl").booleanTRUE
iconiconDisplays a specific icon.stringTRUE
preloadpreloadWhen true, it loads preloads the icon data.booleanTRUE
scalescaleSpecifies the size of the component."l" | "m" | "s"TRUE
textLabeltext-labelAccessible name for the component. It is recommended to set this value if your icon is semantic.stringFALSE

Examples

calcite_icon()
#> <calcite-icon></calcite-icon>