ActionCardDefaults

object ActionCardDefaults


Default values used for ActionCard

Summary

Public functions

Color

Calculates the default content color for an ActionCard based on the provided color.

Public properties

Color

The default background color of ActionCard.

PaddingValues

Default content padding used for an ActionCard

Shape

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

Public functions

contentColor

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

Calculates the default content color for an ActionCard based on the provided color.

Parameters
color: Color = ActionCardDefaults.color

the background color of the action card

Returns
Color

the calculated content color

Public properties

color

val colorColor

The default background color of ActionCard.

contentPadding

val contentPaddingPaddingValues

Default content padding used for an ActionCard

This affects the outermost content padding applied around the content container. Note that there is additional padding applied around the content / text / icons inside an action card, this only represents the outer padding for the entire content.

shape

val shapeShape

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