Composables
Docs Login
Tally

Option Group

Jetpack Compose Component

Download
package com.composables.tally.components

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import com.composables.tally.theme.ProvideContentColor
import com.composables.tally.theme.Theme

@Composable
fun OptionGroup(
    modifier: Modifier = Modifier,
    content: @Composable ColumnScope.() -> Unit,
) {
    Column(
        modifier.fillMaxWidth().clip(Theme.shapes.medium).background(Theme.colors.surfaceVariant)
    ) {
        ProvideContentColor(Theme.colors.onSurfaceVariant) { content() }
    }
}

More components from Tally

by Alex Styl

Search screens and components

Screen flows

Screens

UI Elements