FAB

4.1.0

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

Demo

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

Tillgänglighet

Semantik

Som standard visas FAB som en <button type="button">.

Tillgängligt namn

FAB får ett tillgängligt namn genom den obligatoriska propen label. Label kommer antingen visas visuellt eller sättas som dold aria-label, beroende på vilken variant av FAB som används.

Change log

Statistik