FAB

4.1.0

The FAB component represents the most important action on a screen. It puts key actions within reach.

Demo

Props

Se fullständing dokumentation(öppnas i ny flik)
NamnTypBeskrivning

customAttribute

{ attribute: string; value: string | number }Used for tests. Clickable and requested subcomponents will be suffixed with "-[ComponentName]".

elevated

booleanDetermines if the Fab should display a drop shadow (default is true).

isLoading

booleanIf true, a loading skeleton will be rendered instead of the component.

label *

stringText label for the button, used as aria-label for "circular" variant. If variant is "circular", the label prop is used to set an aria-label instead.

leadingIcon

FCOptional icon to be displayed to the left inside the Fab.

variant

"extended" | "circular"Variant of the Fab, can be either "circular" or "extended" (default is "circular").

Installation

npm install @sj-ab/component-library.ui.fab

Länkar

Change log

Statistik