ThemedButton

@Composable
fun ThemedButton(onClick: () -> Unit, modifier: Modifier = Modifier, text: String? = null, shape: ButtonShape = ButtonShape.RECTANGLE, primary: Boolean = false, content: @Composable () -> Unit = {})

Create a Button which is styled with primary or secondary colors.

Parameters

primary

If true, use styles that call this button out as one associated with a major action you want to draw attention to.

content

If set, renders custom content on the button. If both this and text is specified, then this content will be rendered to the left of the text with a bit of margin. This is particularly useful for rendering logos.