Skip to contents

Create a SplitButton component

Usage

calcite_split_button(...)

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 style of the component."outline" | "outline-fill" | "solid" | "transparent"TRUE
disableddisabledWhen true, interaction is prevented and the component is displayed with lower opacity.booleanTRUE
dropdownIconTypedropdown-icon-typeSpecifies the icon used for the dropdown menu."caret" | "chevron" | "ellipsis" | "overflow"TRUE
dropdownLabeldropdown-labelAccessible name for the dropdown menu.stringTRUE
flipPlacementsNASpecifies the component's fallback slotted content placement when it's initial or specified placement has insufficient space available.Check API referenceFALSE
kindkindSpecifies the kind of the component, which will apply to border and background, if applicable."brand" | "danger" | "inverse" | "neutral"TRUE
loadingloadingWhen true, a busy indicator is displayed on the primary button.booleanTRUE
overlayPositioningoverlay-positioningDetermines the type of positioning to use for the overlaid content. Using "absolute" will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout. "fixed" should be used to escape an overflowing parent container, or when the reference element's position CSS property is "fixed"."absolute" | "fixed"TRUE
placementplacementDetermines where the component will be positioned relative to the container element."bottom" | "bottom-end" | "bottom-start" | "top" | "top-end" | "top-start"TRUE
primaryIconEndprimary-icon-endSpecifies an icon to display at the end of the primary button.stringTRUE
primaryIconFlipRtlprimary-icon-flip-rtlDisplays the primaryIconStart and/or primaryIconEnd as flipped when the element direction is right-to-left ("rtl")."both" | "end" | "start"TRUE
primaryIconStartprimary-icon-startSpecifies an icon to display at the start of the primary button.stringTRUE
primaryLabelprimary-labelAccessible name for the primary button.stringTRUE
primaryTextprimary-textText displayed in the primary button.stringTRUE
scalescaleSpecifies the size of the component."l" | "m" | "s"TRUE
widthwidthCheck API reference"auto" | "full" | "half"TRUE

Events

The following events are observed by shiny:

EventDescription
calciteSplitButtonPrimaryClickFires when the primary button is clicked.
calciteSplitButtonSecondaryClickFires when the dropdown menu is clicked.

Slots

The following slots are provided by this component:

SlotDescription
Default (unnamed)A slot for adding calcite-dropdown content.

Examples

calcite_split_button()
#> <calcite-split-button></calcite-split-button>