Skip to content

Theme component styles

Set a component's look once in the theme; a value passed to a call still wins.

Theme component styles Theme component styles

JengaTheme(
    components =
    JengaComponentStyles(
        button =
        JengaButtonStyle(
            medium = JengaButtonSizeStyle(
                shape = RoundedCornerShape(
                    size = 4.dp,
                ),
            ),
        ),
    ),
    content = {
        JengaButton(
            text = "Square corners",
            onClick = {},
        )
    },
)

API reference for JengaTheme