Skip to content

focusable box

milan jurkulák edited this page May 2, 2024 · 1 revision

//tvlib/org.mjdev.tvlib.ui.components.complex/FocusableBox

FocusableBox

[androidJvm]\

@Composable

fun FocusableBox(modifier: Modifier = Modifier, enabled: Boolean = true, tonalElevation: Dp = 0.dp, focusedColor: Color = Color.Green, unFocusedColor: Color = Color.Transparent, pressedColor: Color = focusedColor.copy(alpha = 0.5f), disabledColor: Color = Color.Gray.copy(alpha = 0.5f), roundCornerSize: Dp = 0.dp, shape: Shape = RoundedCornerShape(roundCornerSize), borderColor: Color = Color.Transparent, borderSize: Dp = 0.dp, focusRequester: FocusRequester = rememberFocusRequester(), focusState: MutableState<FocusState> = rememberFocusState(), onFocusChange: (state: FocusState, fromUser: Boolean) -> Unit? = null, onClick: () -> Unit? = null, content: @ComposableBoxScope.() -> Unit = {})

Clone this wiki locally