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


@JvmName(name = "DisplayNameWithComponentState")
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


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

Deprecated

This class is deprecated and will be removed in a future release.

Replace with

com.gravatar.ui.components.atomic.DisplayName

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, textStyle: TextStyle = MaterialTheme.typography.headlineSmall.copy(fontWeight = FontWeight.Bold))

Deprecated

This class is deprecated and will be removed in a future release.

Replace with

com.gravatar.ui.components.atomic.DisplayName

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

textStyle

The style to apply to the text