ListItemDefaults

Contains the default values used by list items.

Properties

Link copied to clipboard
@get:Composable
@get:ReadOnlyComposable
val containerColor: Color

The container color of a list item

Link copied to clipboard
@get:Composable
@get:ReadOnlyComposable
val contentColor: Color

The content color of a list item

Link copied to clipboard
val Elevation: Dp

The default elevation of a list item

Link copied to clipboard
@get:Composable
@get:ReadOnlyComposable
val shape: Shape

The default shape of a list item

Functions

Link copied to clipboard
@Composable
fun colors(containerColor: Color = ListTokens.ListItemContainerColor.value, headlineColor: Color = ListTokens.ListItemLabelTextColor.value, leadingIconColor: Color = ListTokens.ListItemLeadingIconColor.value, overlineColor: Color = ListTokens.ListItemOverlineColor.value, supportingColor: Color = ListTokens.ListItemSupportingTextColor.value, trailingIconColor: Color = ListTokens.ListItemTrailingIconColor.value, disabledHeadlineColor: Color = ListTokens.ListItemDisabledLabelTextColor.value.copy( alpha = ListTokens.ListItemDisabledLabelTextOpacity ), disabledLeadingIconColor: Color = ListTokens.ListItemDisabledLeadingIconColor.value.copy( alpha = ListTokens.ListItemDisabledLeadingIconOpacity ), disabledTrailingIconColor: Color = ListTokens.ListItemDisabledTrailingIconColor.value.copy( alpha = ListTokens.ListItemDisabledTrailingIconOpacity )): ListItemColors

Creates a ListItemColors that represents the default container and content colors used in a ListItem.