Extended FAB
fun ExtendedFAB(modifier: Modifier = Modifier, style: FABStyle = FABStyle.PRIMARY, text: String, onClick: () -> Unit, icon: @Composable () -> Unit)
DHIS2 ExtendedFAB button with generic icon slot. wraps Material 3 ExtendedFloatingActionButton. 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.
on Click
: Will be called when the user clicks the button.
text
: the text to be displayed.