ursus
10/29/2025, 2:12 PM@Composable
private fun Link(
modifier: Modifier,
text: String,
isQuiet: Boolean = false, <------
isSecondary: Boolean = false, <------
isSmall: Boolean = false, <----------
onClick: () -> Unit
) {
...
}
How do you deal with creating variants of composables? I'd naturally expect to these be a separate composables
however in this case, its a combination, i.e. I'd have to end up with
LargeLoudPrimaryLink
LargeQuietPrimaryLink
...
all the combinations -- which seems not idealefemoney
10/30/2025, 12:31 PMursus
11/01/2025, 12:39 AM