UserInfo
fun UserInfo(profile: Profile, modifier: Modifier = Modifier, textStyle: TextStyle = MaterialTheme.typography.bodyMedium.copy(color = MaterialTheme.colorScheme.outline), content: @Composable (String, Modifier) -> Unit = { userInfo, contentModifier ->
UserInfoDefaultContent(userInfo, textStyle, contentModifier)
})
UserInfo is a composable that displays a user's information in a formatted way. The user's information includes their company, job title, pronunciation, pronouns, and current location when available.
Parameters
profile
The user's profile information
modifier
Composable modifier
textStyle
The style to apply to the default text content
content
Composable to display the formatted user information
fun UserInfo(state: ComponentState<Profile>, modifier: Modifier = Modifier, skeletonModifier: Modifier = Modifier, textStyle: TextStyle = MaterialTheme.typography.bodyMedium.copy(color = MaterialTheme.colorScheme.outline), content: @Composable (String, Modifier) -> Unit = { userInfo, contentModifier ->
UserInfoDefaultContent(userInfo, textStyle, contentModifier)
})
UserInfo is a composable that displays a user's information in a formatted way. The user's information includes their company, job title, pronunciation, pronouns, and current location when available.
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 default text content
content
Composable to display the formatted user information