KPToolbar

fun KPToolbar(title: String, modifier: Modifier = Modifier, style: ToolbarStyle = KPToolbarStyle.None, titleTextStyle: TextStyle = KPDesign.typography.titleMediumColorOnSurfaceVariant3, backgroundColor: Color = KPDesign.colors.colorSurface, elevation: Dp = KPToolbarDefaults.Elevation, contentPadding: PaddingValues = KPToolbarDefaults.ContentPadding)

Toolbar displays information and actions relating to the current screen. There are some various styles. You can reach the toolbar styles in .

Parameters

title

This mandatory parameter defines the text that will be displayed in the center of the toolbar.

modifier

The Modifier to be applied to this Toolbar

style

This parameter controls the visual style of the toolbar. It can be set to one of the predefined KPToolbarStyle enum values like KPToolbarStyle.Icon.EndIcon or KPToolbarStyle.TextButton to achieve different appearances. Defaults to KPToolbarStyle.None

titleTextStyle

This parameter allows you to customize the text style for the toolbar title.

backgroundColor

The background color for the Toolbar.

elevation

the elevation of this Toolbar

contentPadding

the padding applied to the content of this Toolbar