PrimaryButton¶
PrimaryButton is the Phase 1 vertical-slice action component.
Behavior¶
- Uses
AppTheme.colors.primaryandAppTheme.colors.onPrimary. - Uses semantic spacing from
AppTheme.spacing. - Enforces a minimum 48dp touch target.
- Ships with Compose preview, Showkase entry, unit test, and Roborazzi smoke screenshot test.
Example¶
AppTheme {
PrimaryButton(
text = "Continue",
onClick = ::continueFlow,
)
}