contentConfiguration

fun contentConfiguration(enableMaterial: Boolean = true, backgroundColor: Color = Color.Transparent, cornerSize: Dp = CornerRadius, contentPadding: PaddingValues = SegmentContentPadding, itemGap: Dp = ItemGap, minWidth: Dp = SegmentMinWidth): ToolbarSegmentConfiguration

Create a configuration for the content segment of the toolbar.

Return

The configuration.

Parameters

enableMaterial

Whether to render material background for the segment.

backgroundColor

The solid color overlay of the segment.

cornerSize

The corner radius of the segment.

contentPadding

The padding of the segment.

itemGap

The gap between items of the segment.

minWidth

The minimum width of the segment.