Display
SKCard
SKCard is the standard content surface. It handles elevation tokens, ripple on clickable cards, and safe padding defaults so content never collides with rounded corners.
Not yet released. SKCard is planned for 1.2.0; the current published release (1.4.0-alpha01) ships SKText and SKTextField only.
Usage
SKCard.kt
SKCard(variant = SKCardVariant.Elevated, onClick = ::openInvoice) {
SKText("Invoice #4821", role = SKTextRole.TitleMedium)
SKText("Due in 3 days", role = SKTextRole.BodySmall)
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | SKCardVariant | Filled | Elevated, Filled or Outlined. |
| onClick | (() -> Unit)? | null | Makes the card clickable. |
Accessibility
Clickable cards expose a single click action rather than nested targets.
Theming
Elevation maps to SKTheme.elevation; corner radius to SKTheme.shapes.medium.
API surface
- SKCard
- SKCardVariant