Skip to content
milan jurkulák edited this page Aug 29, 2024 · 2 revisions

//tvlib/org.mjdev.tvlib.ui.components.button/Button

Button

[androidJvm]\

@Composable

fun Button(text: Any? = "test", modifier: Modifier = Modifier, fontSize: TextUnit = 24.sp, fontWeight: FontWeight = FontWeight.Bold, color: Color = Color.White, containerColor: Color = Color.LightGray, contentPadding: PaddingValues = PaddingValues(0.dp), roundRectSize: Dp = 8.dp, shape: Shape = RoundedCornerShape(roundRectSize), borderSize: Dp = 2.dp, borderColor: Color = Color.White, glow: ButtonGlow = ButtonDefaults.NO_GLOW, scale: ButtonScale = ButtonDefaults.NO_SCALE, focusState: MutableState<FocusState> = rememberFocusState(), onClick: () -> Unit? = null, content: @ComposableRowScope.() -> Unit = { TextAny( text = text, color = color, textAlign = TextAlign.Center, maxLines = 1 ) })

Clone this wiki locally