Composable Component

OutlinedButton

Base level Wear Material3 OutlinedButton that offers a single slot to take any content.

OutlinedButtonSample

@Composable
fun OutlinedButtonSample(modifier: Modifier = Modifier.fillMaxWidth()) {
    OutlinedButton(
        onClick = { /* Do something */ },
        label = { Text("Outlined Button") },
        secondaryLabel = { Text("Secondary label") },
        icon = {
            Icon(
                painter = painterResource(R.drawable.ic_favorite_rounded),
                contentDescription = "Favorite icon",
                modifier = Modifier.size(ButtonDefaults.IconSize),
            )
        },
        modifier = modifier,
    )
}

SimpleOutlinedButtonSample

@Composable
fun SimpleOutlinedButtonSample(modifier: Modifier = Modifier.fillMaxWidth()) {
    OutlinedButton(
        onClick = { /* Do something */ },
        label = { Text("Outlined Button") },
        modifier = modifier,
    )
}