Skip to content

Segment

Inherits: Control

A segment for a SegmentedButton.

Properties

Properties#

icon class-attribute instance-attribute #

icon: IconDataOrControl | None = None

The icon (typically an Icon) to be displayed in the segment.

label class-attribute instance-attribute #

label: StrOrControl | None = None

The label (usually a Text) to be displayed in the segment.

Raises:

value instance-attribute #

value: str

Used to identify the Segment.