Package-level declarations

Types

Link copied to clipboard
@Stable
class ComponentDefaultKey<V : Any>

An identity key naming an independent part of a scoped cascade of inheritable modifier declarations.

Link copied to clipboard

A token binding a ComponentDefaultKey to an optional value to be passed to ProvideComponentDefaults.

Properties

Link copied to clipboard
@get:Composable
@get:ReadOnlyComposable
val <V : Any> ComponentDefaultKey<V>.current: V?

Reads the nearest surviving value provided for this key in the current composition hierarchy, or null when the key is absent or was removed.

Link copied to clipboard

Key for the default background color applied to descendants via background.

Link copied to clipboard

Key for the default component orientation applied to descendants via componentOrientation.

Link copied to clipboard

Key for the default cursor applied to descendants via cursor.

Link copied to clipboard

Key for the default enabled flag applied to descendants via enabled.

Link copied to clipboard

Key for the default font applied to descendants via font.

Link copied to clipboard

Key for the default foreground color applied to descendants via foreground.

Link copied to clipboard

Key for the default opaque flag applied to compatible descendants via opaque.

Functions

Link copied to clipboard

Creates a new ComponentDefaultKey with identity equality.

Link copied to clipboard
@Composable
fun ProvideComponentDefaults(value: ProvidedComponentDefault<*>, content: @Composable () -> Unit)

Scopes a single inherited component default declaration over content.

@Composable
fun ProvideComponentDefaults(vararg values: ProvidedComponentDefault<*>, content: @Composable () -> Unit)

Scopes multiple inherited component default declarations over content.

Link copied to clipboard