OudsExtendedFloatingActionButton
Extended FABs help people take primary actions. They're wider than FABs to accommodate a text label and larger target area.
The other extended floating action button overload supports a text label and icon.
Parameters
Label displayed inside this FAB.
Called when this FAB is clicked.
The Modifier to be applied to this FAB.
Defines the shape of this FAB's container and shadow.
Appearance of the FAB among OudsFloatingActionButtonAppearance values.
An optional hoisted MutableInteractionSource for observing and emitting Interactions for this FAB. You can use this to change the FAB's appearance or preview the FAB in different states. Note that if null is provided, interactions will still happen internally.
Samples
OudsExtendedFloatingActionButton(
label = "Label",
onClick = { /* Do something! */ }
)Extended FABs help people take primary actions. They're wider than FABs to accommodate a text label and larger target area.
The other extended floating action button overload is for FABs without an icon.
Default content description for accessibility is extended from the extended fabs icon. For custom behavior, you can provide your own via Modifier.semantics.
Parameters
Label displayed inside this FAB.
Icon for this FAB.
Called when this FAB is clicked.
The Modifier to be applied to this FAB.
Defines the shape of this FAB's container and shadow.
An optional hoisted MutableInteractionSource for observing and emitting Interactions for this FAB. You can use this to change the FAB's appearance or preview the FAB in different states. Note that if null is provided, interactions will still happen internally.
Samples
OudsExtendedFloatingActionButton(
label = "Label",
icon = OudsFloatingActionButtonIcon(
imageVector = Icons.Filled.FavoriteBorder,
contentDescription = "Content description"
),
onClick = { /* Do something! */ }
)