ViewProfileButton

fun ViewProfileButton(profile: Profile, modifier: Modifier = Modifier, textStyle: TextStyle = MaterialTheme.typography.titleSmall.copy(color = MaterialTheme.colorScheme.onBackground), buttonText: String = defaultViewProfileButtonText(), inlineContent: @Composable (String) -> Unit? = { DefaultInlineContent(textStyle.color) })

ViewProfileButton is a composable that displays a button to view a user's profile.

Parameters

profile

The user's profile information

modifier

Composable modifier

textStyle

The style to apply to the text

buttonText

The text to display on the button

inlineContent

The content to display inline with the text, by default it is an arrow icon. It can be null if no content is needed.


fun ViewProfileButton(profile: Profile, modifier: Modifier = Modifier, textStyle: TextStyle = MaterialTheme.typography.titleSmall.copy(color = MaterialTheme.colorScheme.onBackground), inlineContent: @Composable (String) -> Unit? = { DefaultInlineContent(textStyle.color) })

ViewProfileButton is a composable that displays a button to view a user's profile.

Parameters

profile

The user's profile information

modifier

Composable modifier

textStyle

The style to apply to the text

inlineContent

The content to display inline with the text, by default it is an arrow icon. It can be null if no content is needed.


fun ViewProfileButton(state: ComponentState<Profile>, modifier: Modifier = Modifier, textStyle: TextStyle = MaterialTheme.typography.titleSmall.copy(color = MaterialTheme.colorScheme.onBackground), inlineContent: @Composable (String) -> Unit? = { DefaultInlineContent(textStyle.color) })

ViewProfileButton is a composable that displays a button to view a user's profile or it's loading state.

Parameters

state

The user's profile state

modifier

Composable modifier

textStyle

The style to apply to the text

inlineContent

The content to display inline with the text, by default it is an arrow icon. It can be null if no content is needed.