JengaCardDefaults

Defaults and token mappings for JengaCard.

The composable members follow the theme's JengaCardStyle; the constants are Jenga's built-in values.

Properties

Link copied to clipboard

Width of the border drawn inside the card edge when JengaCardColors.border is set.

Link copied to clipboard

Default inner padding.

Link copied to clipboard
const val DisabledAlpha: Float = 0.38f

Opacity of the whole card when it is not enabled.

Link copied to clipboard

Width of the border of a selected card.

Link copied to clipboard

Default card shape.

Functions

Link copied to clipboard
fun colors(variant: JengaCardVariant, selected: Boolean = false): JengaCardColors

Themed colors per variant; a selected card takes the brand color as its border.

Link copied to clipboard

Resting elevation per variant, from JengaTheme.elevation.