Package-level declarations

Types

Link copied to clipboard
sealed class ComponentState<out T>

ComponentState represents the state of a user profile loading. It can be in a Loading state or a Loaded state.

Functions

Link copied to clipboard
fun LargeProfile(profile: Profile, modifier: Modifier = Modifier)

LargeProfile is a composable that displays a user's profile card. Given a ComponentState, it displays a LargeProfile using the other atomic components provided within the SDK.

fun LargeProfile(state: ComponentState<Profile>, modifier: Modifier = Modifier, avatar: @Composable (state: ComponentState<Profile>) -> Unit = { profileState -> Avatar( state = profileState, size = 132.dp, modifier = Modifier.clip(CircleShape), ) }, viewProfile: @Composable (state: ComponentState<Profile>) -> Unit = { profileState -> ViewProfileButton( state = profileState, modifier = Modifier.padding(0.dp), ) })

LargeProfile is a composable that displays a user's profile card. Given a ComponentState for a Profile, it displays a LargeProfile or the skeleton if it's in a loading state.

Link copied to clipboard
fun LargeProfileSummary(profile: Profile, modifier: Modifier = Modifier)

LargeProfileSummary is a composable that displays a user's profile in a resumed way. Given a Profile, it displays a LargeProfileSummary using the other atomic components provided within the SDK.

fun LargeProfileSummary(state: ComponentState<Profile>, modifier: Modifier = Modifier, avatar: @Composable (state: ComponentState<Profile>) -> Unit = { profileState -> Avatar( state = profileState, size = 132.dp, modifier = Modifier.clip(CircleShape), ) }, viewProfile: @Composable (state: ComponentState<Profile>) -> Unit = { profileState -> ViewProfileButton( state = profileState, modifier = Modifier.padding(0.dp), inlineContent = null, ) })

LargeProfileSummary is a composable that displays a user's profile in a resumed way. Given a ComponentState for a Profile, it displays a LargeProfileSummary in the appropriate state.

Link copied to clipboard
fun Profile(profile: Profile, modifier: Modifier = Modifier)

Profile is a composable that displays a user's profile card. Given a Profile, iit displays a profile UI component using the other atomic components provided within the SDK.

fun Profile(state: ComponentState<Profile>, modifier: Modifier = Modifier, avatar: @Composable (state: ComponentState<Profile>) -> Unit = { profileState -> Avatar( state = profileState, size = 72.dp, modifier = Modifier.clip(CircleShape), ) }, viewProfile: @Composable (state: ComponentState<Profile>) -> Unit = { profileState -> ViewProfileButton(profileState, Modifier.padding(0.dp)) })

Profile is a composable that displays a user's profile card. Given a ComponentState for a Profile, it displays a Profile in the appropriate state.

Link copied to clipboard
fun ProfileSummary(profile: Profile, modifier: Modifier = Modifier)

ProfileSummary is a composable that displays a mini profile card. Given a Profile, it displays a profile summary card using the other atomic components provided within the SDK.

fun ProfileSummary(state: ComponentState<Profile>, modifier: Modifier = Modifier, avatar: @Composable (state: ComponentState<Profile>) -> Unit = { profileState -> Avatar( state = profileState, size = 72.dp, modifier = Modifier.clip(CircleShape), ) }, viewProfile: @Composable (state: ComponentState<Profile>) -> Unit = { profileState -> ViewProfileButton( state = profileState, modifier = Modifier.height(32.dp), ) })

ProfileSummary is a composable that displays a mini profile card. Given a ComponentState for a Profile, it displays a profile summary card using the other atomic components.