FAB

fun FAB(modifier: Modifier = Modifier, style: FABStyle = FABStyle.PRIMARY, onClick: () -> Unit, icon: @Composable () -> Unit)

DHIS2 FAB button with generic icon slot. wraps Material 3 FloatingActionButton. FABs help people take primary actions. They’re used to represent the most important action on a screen.

Parameters

style

: Controls style of the button. Can be FABStyle.PRIMARY or FABStyle.SECONDARY or FABStyle.SURFACE

icon

: The button icon content.

modifier

: optional Modifier.

onClick

: Will be called when the user clicks the button.