Plain Source Content Button
fun PlainSourceContentButton(size: SourceButton.Size, onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, buttonColours: ButtonColours = PlainDefault, disabledButtonColours: ButtonColours? = null, content: @Composable () -> Unit)
A plain, basic Source compatible button component. This button does not have any Source colour theming. Provide buttonColours to theme the button.
This is a low-level component and should be sparingly used only for custom buttons. Prefer to use PlainSourceButton or SourceIconButton instead.
Parameters
size
Button size from SourceButton.Sizes. Reflects the prominence of the action.
on Click
Callback for action to take when user clicks the button.
modifier
Optional Modifier
enabled
Whether the button is enabled and can be interacted with.
button Colours
Optional colours for the button. Use this to theme the button.
disabled Button Colours
Optional colours for the button when it is disabled. If not provided, the button colours are used with reduced opacity.
content
Slot for composable content to present inside the button.