StylishFooter

fun StylishFooter(content: @Composable () -> Unit = {}, leadingContent: @Composable () -> Unit? = null, trailingContent: @Composable () -> Unit? = null, modifier: Modifier = Modifier, shape: Shape = RoundedCornerShape(StylishTheme.dimensions.floatingCornerRadius), containerColor: Color = MaterialTheme.colorScheme.surfaceContainerHigh, contentColor: Color = MaterialTheme.colorScheme.onSurface, border: BorderStroke? = BorderStroke( StylishTheme.dimensions.outlineWidth, MaterialTheme.colorScheme.outlineVariant, ), tonalElevation: Dp = 4.dp, shadowElevation: Dp = StylishTheme.dimensions.floatingElevation, height: Dp = 56.dp, topPadding: Dp = StylishTheme.dimensions.contentSpacing, bottomPadding: Dp = StylishTheme.dimensions.itemSpacing, actionsSpacing: Dp = StylishTheme.dimensions.inlineSpacing, windowInsets: WindowInsets = WindowInsets.navigationBars, visibilityState: VisibilityState = VisibilityState.AlwaysVisible)

A floating page footer that hosts action slots at the bottom of the screen. Mirrors StylishHeader in visual language — rounded, elevated, with a hairline outline — and is designed to fill the bottomBar slot of StylishScaffold.

The content slot is centered, leadingContent aligns to the start edge, and trailingContent to the end edge. Automatic navigation-bar inset padding is applied below the surface.

Parameters

content

Composable rendered at the horizontal center of the bar, typically a primary action button or label.

leadingContent

Optional composable rendered at the start (leading) edge. When null, no leading content is shown.

trailingContent

Optional composable rendered at the end (trailing) edge. When null, no trailing content is shown.

modifier

Modifier applied to the outer Column.

shape

Corner shape of the footer surface. Defaults to RoundedCornerShape with StylishTheme.dimensions.floatingCornerRadius.

containerColor

Background color of the footer surface.

contentColor

Default content color propagated to children.

border

Optional BorderStroke drawn around the surface. Defaults to a hairline stroke using StylishTheme.dimensions.outlineWidth. Pass null to remove.

tonalElevation

Tonal elevation of the surface.

shadowElevation

Drop-shadow elevation of the surface. Defaults to StylishTheme.dimensions.floatingElevation.

height

Fixed height of the inner content area. Defaults to 56.dp (standard bar height).

topPadding

Space above the surface, separating it from page content. Defaults to StylishTheme.dimensions.contentSpacing.

bottomPadding

Space below the surface, before navigation-bar insets. Defaults to StylishTheme.dimensions.itemSpacing.

actionsSpacing

Horizontal gap between items inside leadingContent and trailingContent when they contain multiple children. Defaults to StylishTheme.dimensions.inlineSpacing.

windowInsets

WindowInsets consumed below the surface via Modifier.windowInsetsPadding, typically the navigation-bar insets. Defaults to WindowInsets.navigationBars so the bar clears the system gesture/navigation area.

See also