Tab
Inherits: AdaptiveControl
A Material Design TabBar
tab.
Properties
-
height
(Number | None
) –The height of the tab.
-
icon
(IconDataOrControl | None
) –An icon to display on the left of Tab text.
-
icon_margin
(MarginValue | None
) –The margin added around the tab's icon.
-
label
(StrOrControl | None
) –The tab's name. Can be either a string or a control.
Properties#
icon_margin
#
icon_margin: MarginValue | None = None
The margin added around the tab's icon.
Only useful when used in combination with icon
,
and label
is not None
.
Defaults to 2
pixels of bottom margin.
If Theme.use_material3
is False
,
then defaults to 10
pixels of bottom margin.
label
#
label: StrOrControl | None = None
The tab's name. Can be either a string or a control.
Raises: