Skip to main content
Version: 57.2.0

SelectBadge

SelectBadge is an interactive badge that can open a dropdown with selectable options.

Package: @terreno/ui
Categories: Component
Props interface: SelectBadgeProps
Story source: demo/stories/SelectBadge.stories.tsx

Live demo

Props

PropTypeRequiredDescription
onChangereflectionYesThe function to call when the selected value changes.
optionsarrayYesThe options available for the dropdown badge. Each option should have a label and a value.
customBackgroundColorstringWhen status is "custom", determines the badge's background color.
customBorderColorstringWhen status is "custom", determines the badge's border color.
customTextColorstringWhen status is "custom", determines the badge's text color.
disabledbooleanIf true, the badge will be disabled and not interactive.
secondarybooleanIf true, the badge will have a secondary style.
statusunionThe status of the badge. Determines its color and appearance.
valuestringThe current value of the select field.