NonInteractiveSurfaceDefaults


@ExperimentalTvMaterial3Api
object NonInteractiveSurfaceDefaults


Contains the default values used by a non-interactive Surface

Summary

Public functions

NonInteractiveSurfaceColors
@Composable
colors(containerColor: Color, contentColor: Color)

Creates a NonInteractiveSurfaceColors that represents the default container & content colors used by a non-interactive Surface.

Public properties

Shape

Represents the default shape used by a non-interactive Surface

Public functions

colors

@Composable
fun colors(
    containerColor: Color = MaterialTheme.colorScheme.surface,
    contentColor: Color = contentColorFor(containerColor)
): NonInteractiveSurfaceColors

Creates a NonInteractiveSurfaceColors that represents the default container & content colors used by a non-interactive Surface.

Parameters
containerColor: Color = MaterialTheme.colorScheme.surface

the container color of this Surface

contentColor: Color = contentColorFor(containerColor)

the content color of this Surface

Public properties

shape

Added in 1.0.0-alpha10
val shapeShape

Represents the default shape used by a non-interactive Surface