Source Button
A Source button component with text and an optional icon.
Parameters
Text to display on the button.
Button priority from SourceButton.Prioritys. Informs users of how important an action is.
Callback for action to take when user clicks the button.
Optional Modifier
Whether the button is enabled and can be interacted with.
Optional button size from SourceButton.Sizes. Reflects the prominence of the action. Defaults to SourceButton.Size.Small.
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.
Optional the side of the button on which the icon appears. Defaults to SourceButton.IconSide.Left.
Optional icon to display on the button.