PlainSourceButton

fun PlainSourceButton(text: String, onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, buttonColours: ButtonColours = PlainDefault, disabledButtonColours: ButtonColours? = null, size: SourceButton.Size = SourceButton.Size.Small, iconSide: SourceButton.IconSide = SourceButton.IconSide.Left, icon: @Composable (Modifier) -> Unit = {})

A plain Source button component with text and an optional icon. This has no Source colour theming. Provide buttonColours to theme the button.

Prefer to use SourceButton or SourceIconButton instead.

Parameters

text

Text to display on the button.

onClick

Callback for action to take when user clicks the button.

modifier

Optional Modifier

enabled

Whether the button is enabled and can be interacted with.

buttonColours

Optional colours for the button. Use this to theme the button.

disabledButtonColours

Optional colours for the button when it is disabled. If not provided, the button colours are used with reduced opacity.

size

Button size from SourceButton.Sizes. Reflects the prominence of the action.

iconSide

Optional the side of the button on which the icon appears. Defaults to SourceButton.IconSide.Left.

icon

Optional icon to display on the button.