androidx.compose.material3

ScrollFieldDefaultsSince 1.12Experimental

Object

No hand-written docs yet.

Object to hold defaults used by ScrollField.

object ScrollFieldDefaults

Properties

ScrollFieldHeight

val ScrollFieldHeight: Dp

The default height for a ScrollField. This can be used as a reference when providing a Modifier.height to the ScrollField to ensure enough vertical space is available to display the typical three-item layout.

shape

@Composable val shape: Shape

The default shape for the ScrollField container background.

Functions

colors

@Composable
fun colors(): ScrollFieldColors

Default colors used by a ScrollField.

@Composable
fun colors(
    containerColor: Color = Color.Unspecified,
    unselectedContentColor: Color = Color.Unspecified,
    selectedContentColor: Color = Color.Unspecified,
)

Creates a ScrollFieldColors that represents the default container, unselected, and selected colors used in a ScrollField.

Item

@Composable
fun Item(
    index: Int,
    selected: Boolean,
    colors: ScrollFieldColors = colors(),
)

The default item implementation for ScrollField.

Library docs

Object to hold defaults used by ScrollField.