DisplayName

fun DisplayName(profile: Profile, modifier: Modifier = Modifier, textStyle: TextStyle = MaterialTheme.typography.headlineSmall.copy(fontWeight = FontWeight.Bold))

DisplayName is a composable that displays the user's display name.

Parameters

profile

The user's profile information

modifier

Composable modifier

textStyle

The style to apply to the text


fun DisplayName(state: ComponentState<Profile>, modifier: Modifier = Modifier, skeletonModifier: Modifier = Modifier, textStyle: TextStyle = MaterialTheme.typography.headlineSmall.copy(fontWeight = FontWeight.Bold))

DisplayName is a composable that displays the user's display name or a loading skeleton.

Parameters

state

The user's profile state

modifier

Composable modifier

skeletonModifier

Composable modifier for the loading skeleton component

textStyle

The style to apply to the text