SourceContentButton

fun SourceContentButton(size: SourceButton.Size, priority: SourceButton.Priority, onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, theme: Source.Theme? = null, content: @Composable () -> Unit)

A basic Source compatible button component. This is a low-level component and should be sparingly used only for custom buttons. Prefer to use SourceButton or SourceIconButton instead.

Parameters

size

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

priority

Button priority from SourceButton.Prioritys. Informs users of how important an action is.

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.

theme

Optional Source.Theme to apply to the button. If not provided, the current theme from LocalSourceTheme will be used.

Unless using the button as a standalone component, it is recommended to wrap the whole screen/sheet with SourceCoreTheme or ReaderRevenueTheme to provide consistent theme to all child components once.

content

Slot for composable content to present inside the button.