CellGroup

fun CellGroup(modifier: Modifier = Modifier, title: String = "", inset: Boolean = false, border: Boolean = true, bgColor: Color = MaterialTheme.colorScheme.surfaceContainerLowest, content: @Composable ColumnScope.() -> Unit)

单元格组 将一组 Cell 包裹在一起,可选择是否显示分组标题、上下边框及圆角卡片风格

Parameters

modifier

Modifier 修饰符

title

String 分组标题,为空时不显示,默认为空

inset

Boolean 是否为圆角卡片风格,开启后内容区域带圆角且左右留有间距,默认 false

border

Boolean 是否显示上下边框,仅在 inset 为 false 时生效,默认 true

bgColor

Color 内容区域的背景色,默认为 MaterialTheme.colorScheme.surfaceContainerLowest

content

@Composable ColumnScope.() -> Unit 子内容,通常由多个 Cell 组成