Skip to content

Layout Components

Row / Col (24-column grid)

import xyz.junerver.compose.palette.components.grid.PRow

PRow {
    // 24-column grid; span out of 24
    PCol(span = 12) { Card1() }
    PCol(span = 12) { Card2() }
}

Use gutter for column spacing:

PRow(gutter = 16.dp) { /* ... */ }

Space

Evenly spaced items in a row or column.

import xyz.junerver.compose.palette.components.space.PSpace

PSpace(direction = Direction.ROW, spacing = 8.dp) {
    PButton("A")
    PButton("B")
}

Container & Scaffold

  • Container — max-width centered wrapper
  • Scaffold — Material-style app shell (app bar / drawer / FAB slots)
  • Screen — full-screen container with platform-aware status handling
import xyz.junerver.compose.palette.components.screen.Screen

Screen {
    Text("Full screen content")
}

See the component source for full APIs.