Heading2

@Composable
fun Heading2(text: String, modifier: Modifier = Modifier, colorType: ColorType = OnBackground)

A composable function that displays a heading with H2 typography style.

Parameters

text

The text to be displayed.

modifier

The modifier to be applied to the Text composable.

colorType

The color type to be used for the text.