Skip to content

SegmentedView

The segmented view component.

  • Import
    import "@tapsioss/web-components/segmented-view";
  • Tag
    <tapsi-segmented-view></tapsi-segmented-view>

Properties

NameDescriptionTypeDefault Value
labelDefines a string value that can be used to set a label for assistive technologies.string""

Slots

NameDescription
-The default slot for segmented view items.

TIP

You can use slot names as variables:

ts
import { Slots } from "@tapsioss/web-components/segmented-view";

console.log(Slots.DEFAULT); // ""

Events

NameDescriptionType
activechangeFired when the items activation state changes (Bubbles).ActiveChangeEvent

TIP

You can import custom event names:

ts
import { 
  ActiveChangeEvent
} from "@tapsioss/web-components/segmented-view";

element.addEventListener(ActiveChangeEvent.type, handleTapsiSegmentedViewActiveChange);