Skip to content

Fab

A floating action button for the primary action on a page. Icon-only, or extended with a visible label.

Example

<Fab href="/components" label="Create note">
  <svg ...>...</svg>
</Fab>
<Fab label="New message" extended placement="bottom-start">
  <svg ...>...</svg>
</Fab>

Props

PropTypeDefaultDescription
labelstring-Accessible name; visible text when extended.
hrefstring-Renders a link; otherwise a button.
extendedbooleanfalseShows the label as visible text.
placementbottom-end | bottom-start | top-end | top-startbottom-endFixed viewport corner.
sizemd | lgmdButton size.

Accessibility