SmallTopAppBar

fun SmallTopAppBar(title: String, modifier: Modifier = Modifier, color: Color = MiuixTheme.colorScheme.surface, titleColor: Color = MiuixTheme.colorScheme.onSurface, subtitle: String = "", subtitleColor: Color = MiuixTheme.colorScheme.onSurfaceVariantSummary, navigationIcon: @Composable () -> Unit = {}, actions: @Composable RowScope.() -> Unit = {}, scrollBehavior: ScrollBehavior? = null, defaultWindowInsetsPadding: Boolean = true, titlePadding: Dp = TopAppBarDefaults.TitlePadding, navigationIconPadding: Dp = TopAppBarDefaults.NavigationIconPadding, actionIconPadding: Dp = TopAppBarDefaults.ActionIconPadding, bottomContent: @Composable () -> Unit = {})

A SmallTopAppBar with Miuix style.

The SmallTopAppBar can be configured with a title, a navigation icon, and action icons.

Parameters

title

The title of the SmallTopAppBar.

modifier

The modifier to be applied to the SmallTopAppBar.

color

The background color of the SmallTopAppBar.

titleColor

The color of the title text.

subtitle

The subtitle displayed below the title bar area.

subtitleColor

The color of the subtitle text.

navigationIcon

The Composable content that represents the navigation icon.

actions

The Composable content that represents the action icons.

scrollBehavior

The ScrollBehavior that controls the behavior of the SmallTopAppBar.

defaultWindowInsetsPadding

Whether to apply default window insets padding to the SmallTopAppBar.

titlePadding

The horizontal padding of the SmallTopAppBar's title.

navigationIconPadding

The start padding of the navigation icon.

actionIconPadding

The end padding of the action icons.

bottomContent

The Composable content displayed below the title bar area.