Extended FABs¶
Actions
In Material Design 3¶
An extended FAB is a FAB with a text label, for a main action that an icon alone wouldn't explain.
In Tesserae¶
It is the same Fab (see Floating action buttons) given a Label: 56 tall, as wide as its label, with 16 pixels before the icon and 20
after the text. Give no Icon for a text-only one.
How it is built¶
It is the same view as the fabs: see there for what it takes and how it looks.
Using it¶
Container {
Name: inbox
Style { Width: 240, Height: 120 }
Children {
Fab {
Label: New
Icon: add
Variant: secondary
Handlers {
On_Click: create
}
}
}
}
Using it in Python¶
from tess_ui.widgets import extended_fab
new = extended_fab(app.window, "New", 120, icon="add", variant="primary")