Skip to content

Fab ​

Sizes

Loading...

Extended

Loading...

A floating action button (FAB) represents the primary action of a screen.

  • Tag: <flint-fab>
  • Class: FlintFab

Import ​

ts
import '@getufy/flint-ui'; // auto-registers all
// or
import { FlintFab } from '@getufy/flint-ui';

Usage ​

html
<flint-fab></flint-fab>

Properties ​

PropertyAttributeTypeDefaultDescription
extendedextendedbooleanfalse
disableddisabledbooleanfalse
labellabelstring'Action'Accessible label for icon-only (non-extended) FABs.
positionposition'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'static''bottom-right'

Slots ​

NameDescription
iconThe icon to display inside the FAB.
(default)Default slot for icon content (icon-only FAB).
labelThe label to display in the extended FAB.

CSS Parts ​

NameDescription
baseThe component's base wrapper element.
iconThe icon container.
labelThe label element.

CSS Custom Properties ​

PropertyDefault
--flint-fab-size—
--flint-fab-radius—
--flint-fab-background—
--flint-fab-color—
--flint-fab-shadow—
--flint-primary-color—
--flint-text-color-on-primary—
--flint-shadow-lg—
--flint-shadow-xl—
--flint-font-family—