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.

Stablesince 1.4.0Compose · XMLAll components

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

PropTypeDefaultDescription
textString—Button label.
variantSKButtonVariantFilledFilled, Tonal, Outlined, Text or Elevated.
sizeSKSizeMediumSmall, Medium or Large.
loadingBooleanfalseShows 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