androidx.compose.foundation.text.selection

TextSelectionColors

Class · from org.jetbrains.compose.foundation:foundation:1.12.2

No hand-written docs yet.

Represents the colors used for text selection by text and text field components.

class TextSelectionColors(
    handleColor: Color,
    backgroundColor: Color,
)

How to get one

Create it

Used by

Parameters that take a TextSelectionColors.

Properties

handleColor

val handleColor: Color

backgroundColor

val backgroundColor: Color
Library docs

Represents the colors used for text selection by text and text field components.

See LocalTextSelectionColors to provide new values for this throughout the hierarchy.