Text

fun Text(text: String, modifier: Modifier = Modifier, onClick: () -> Unit, style: TextStyle = KPDesign.typography.subtitleMediumColorPrimary)

Default text used for Toolbar

Parameters

text

The text to be displayed. It should be a String value.

modifier

modifier The Modifier to be applied to this Toolbar

onClick

A lambda function that will be called when the user clicks on the text.

style

A TextStyle object that defines the text style. The default value is KPDesign.typography.subtitleMediumColorPrimary