Action
SKButton
SKButton implements the Material 3 button family with a single API. Variants map to emphasis levels, sizes map to the density scale, and a built-in loading state prevents duplicate submissions in enterprise flows.
Not yet released. SKButton is planned for 1.4.0; the current published release (1.4.0-alpha01) ships SKText and SKTextField only.
Usage
SKButton.kt
SKButton(
text = "Create account",
variant = SKButtonVariant.Filled,
size = SKSize.Large,
loading = isSubmitting,
onClick = ::submit
)Props
| Prop | Type | Default | Description |
|---|---|---|---|
| text | String | — | Button label. |
| variant | SKButtonVariant | Filled | Filled, Tonal, Outlined, Text or Elevated. |
| size | SKSize | Medium | Small, Medium or Large. |
| loading | Boolean | false | Shows a spinner and blocks clicks. |
| onClick | () -> Unit | — | Click handler. |
Accessibility
Minimum 48dp target, disabled state exposed to TalkBack, loading state announces progress.
Theming
Container and content colors derive from SKTheme.colors role pairs.
API surface
- SKButton
- SKButtonVariant
- SKSize