LeadingImageCardDefaults

object LeadingImageCardDefaults


Default values used for LeadingImageCard

Summary

Public functions

Color

Calculates the default content color for a LeadingImageCard based on the provided color.

Public properties

Color

The default background color of LeadingImageCard.

PaddingValues

Default content padding used for a LeadingImageCard

Shape

The default shape of LeadingImageCard, which determines its corner radius.

Public functions

contentColor

Added in 1.0.0-alpha20
@Composable
fun contentColor(color: Color = LeadingImageCardDefaults.color): Color

Calculates the default content color for a LeadingImageCard based on the provided color.

Parameters
color: Color = LeadingImageCardDefaults.color

the background color of the leading image card

Returns
Color

the calculated content color

Public properties

color

val colorColor

The default background color of LeadingImageCard.

contentPadding

val contentPaddingPaddingValues

Default content padding used for a LeadingImageCard

This affects the outermost content padding applied around the image and the content container. Note that there is additional padding applied around the content / text / image inside a leading image card, this only represents the outer padding for the entire content.

shape

val shapeShape

The default shape of LeadingImageCard, which determines its corner radius.