Actions
FAB
The floating action button: a 56px ink button at the bottom right of a phone screen that starts the action people take most, "Add".
In kanso-ui as Fab
Variants and sizes
k-fab: extended, ink, icon and label. The default.k-fab k-fab--icon: icon only, a 56px rounded square named "Add something", for screens where the label would cover rows.k-fab--accent: an accent fill, only when the FAB is the screen's one highlighted action: no spotlight card and no accent button on screen.
States
- Hover: the state layer at
state-hover(8%). - Pressed:
state-pressed(12%); the button shrinks to 96% and its corners tighten fromradius-lgtoradius-md, a change of shape as well as tone. - Focus: the 2px
focus-ring, 2px outside. - Disabled: there is none; adding is always possible.
Do and don’t
Do
Keep one FAB per screen, with a one-word label.
Move it into the app bar as an ink button on the web.
Don’t
Make it accent on a screen with a spotlight card or an accent button.
Float a FAB over a sheet or a dialog.
Let it cover the last row; pad the end of the scroll.
What you provide
- Label, "Add"; for icon only, the accessible name "Add something".
- Icon name:
add. - Variant.
- The press handler: open the form.