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 from radius-lg to radius-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.