How would I create a custom `OutlinedButton` given...
# compose
v
How would I create a custom
OutlinedButton
given the following custom Button shape (which is a parallelogram):
Copy code
@Composable
fun ParalleloButton(onClick: () -> Unit, content: @Composable RowScope.() -> Unit) {
    val shape = ParallelogramShape
    Box(Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
        Button(onClick = onClick, shape = shape, content = content)
    }
}
I don't know if I should be doing something with border, or something with my custom path?
Much simpler than I realised - I was assuming that
Button
was at the root of it all; must stop thinking in terms of inheritance. I swapped Button for OutlinedButton...
🙌 1