Duolith docs

Fab

The floating action button: the screen's main action, over its content at the bottom end.

Stability: experimental

Props

PropTypeDefaultMeans
labelstringWhat it does; its accessible name, and its text when extended.
iconstringplusIts icon.
extendedbooleanfalseShows the label beside the icon.
onPress() => voidRuns when it is pressed.

States

StateLooks like
defaultA primary circle (a rounded square on Material) with a shadow.
pressedScales to 95%.

Accessibility

rolebutton
nameThe label prop.
focusTab reaches it.
keyboardEnter and Space press it.

Theme tokens

color.primary color.on-primary shadow.lg space.5 space.6 text.label

Example

<Fab label="New post" icon="plus" onPress={compose} />