Skip to contents

Create a Label component

Usage

calcite_label(...)

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
alignmentalignmentSpecifies the text alignment of the component."center" | "end" | "start"TRUE
forforSpecifies the id of the component the label is bound to. Use when the component the label is bound to does not reside within the component.stringTRUE
layoutlayoutDefines the layout of the label in relation to the component. Use "inline" positions to wrap the label and component on the same line."default" | "inline" | "inline-space-between"TRUE
scalescaleSpecifies the size of the component."l" | "m" | "s"TRUE

Slots

The following slots are provided by this component:

SlotDescription
Default (unnamed)A slot for adding text and a component that can be labeled.

Examples

calcite_label()
#> <calcite-label></calcite-label>