Source Text Button
fun SourceTextButton(text: String, priority: SourceButton.Priority, size: SourceButton.Size, onClick: () -> Unit, modifier: Modifier = Modifier, theme: Source.Theme? = null)
A text button that adheres to the Source design system. This button is intended for use cases where a text-only button is appropriate, it does not support the XSmall size or Primary/Secondary priorities.
Parameters
text
The text to display inside the button.
priority
The priority level of the button, which determines its visual styling. Only TertiaryOnWhite and TertiaryOnBlue priorities are supported.
size
The size of the button, which determines its dimensions and text style. Only Small and Medium sizes are supported.
on Click
The callback to be invoked when the button is clicked.
modifier
The Modifier to be applied to this button.
theme
An optional Source.Theme to apply to this button. If not provided, the current theme from LocalSourceTheme will be used.