Composable Function

SelectionContainer

Enables text selection for its direct or indirect children.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

SelectionContainer

Common
@Composable
fun SelectionContainer(modifier: Modifier = Modifier, content: @Composable () -> Unit)

Enables text selection for its direct or indirect children.

Use of a lazy layout, such as LazyRow or LazyColumn, within a SelectionContainer has undefined behavior on text items that aren't composed. For example, texts that aren't composed will not be included in copy operations and select all will not expand the selection to include them.