JengaExtendedFab

fun JengaExtendedFab(label: String, onClick: () -> Unit, modifier: Modifier = Modifier, icon: @Composable () -> Unit? = null, shape: Shape = JengaTheme.components.fab?.extendedShape ?: JengaFabDefaults.extendedShape, colors: JengaFabColors = JengaFabDefaults.colors(), elevation: Dp = JengaFabDefaults.elevation, shadowColor: Color = JengaTheme.components.fab?.shadowColor ?: JengaFabDefaults.ShadowColor, height: Dp = JengaTheme.components.fab?.extendedHeight ?: JengaFabDefaults.ExtendedHeight, contentPadding: PaddingValues = JengaFabDefaults.extendedContentPadding, textStyle: TextStyle = JengaFabDefaults.textStyle)(source)

An extended floating action button: a prominent, elevated pill carrying an optional leading icon and a text label. Use it when the primary action needs a word, not just a glyph. Same elevation language as JengaFab; the colors default to brand and can be overridden with any pair (e.g. a neutral inverse) so it reads correctly on any surface.

Parameters

label

the action text.

onClick

called when tapped.

modifier

the Modifier for this FAB.

icon

an optional leading icon; inherits the content color.

shape

the FAB shape; defaults to the theme's extended shape, else a full pill (JengaFabDefaults.extendedShape).

colors

the color set; defaults to JengaFabDefaults.colors.

elevation

the shadow elevation.

shadowColor

the shadow color; defaults to the theme's value, else JengaFabDefaults.ShadowColor.

height

the FAB height; defaults to the theme's value, else JengaFabDefaults.ExtendedHeight.

contentPadding

padding inside the FAB.

textStyle

the label text style.