API reference

ButtonStyle Class

Complete visual treatment for push buttons.

Signature

@Immutable
data class ButtonStyle(
    val containerColor: Color,
    val contentColor: Color,
    val borderColor: Color = Color.Transparent,
    val disabledContainerColor: Color,
    val disabledContentColor: Color,
    val disabledBorderColor: Color = Color.Transparent,
    val interactionColorContext: InteractionColorContext = InteractionColorContext.Default,
)

Constructors

ButtonStyle ( containerColor , contentColor , borderColor , disabledContainerColor , disabledContentColor , disabledBorderColor , interactionColorContext )
Signature
constructor(
    containerColor: Color,
    contentColor: Color,
    borderColor: Color = Color.Transparent,
    disabledContainerColor: Color,
    disabledContentColor: Color,
    disabledBorderColor: Color = Color.Transparent,
    interactionColorContext: InteractionColorContext = InteractionColorContext.Default,
)
Parameters
containerColor: Color  enabled container color
contentColor: Color  enabled label and icon color
borderColor: Color  enabled border color
disabledContainerColor: Color  disabled container color
disabledContentColor: Color  disabled label and icon color
disabledBorderColor: Color  disabled border color
interactionColorContext: InteractionColorContext  container context used to select hover and press overlays
Returns
ButtonStyle

Properties

borderColor : Color
[Get]
enabled border color
Signature
val borderColor: Color
containerColor : Color
[Get]
enabled container color
Signature
val containerColor: Color
contentColor : Color
[Get]
enabled label and icon color
Signature
val contentColor: Color
disabledBorderColor : Color
[Get]
disabled border color
Signature
val disabledBorderColor: Color
disabledContainerColor : Color
[Get]
disabled container color
Signature
val disabledContainerColor: Color
disabledContentColor : Color
[Get]
disabled label and icon color
Signature
val disabledContentColor: Color
interactionColorContext : InteractionColorContext
[Get]
container context used to select hover and press overlays
Signature
val interactionColorContext: InteractionColorContext

Companion Object

Properties

Bordered : ButtonStyle
[Get]
Signature
@get:Composable val Bordered: ButtonStyle
Borderless : ButtonStyle
[Get]
Signature
@get:Composable val Borderless: ButtonStyle
Destructive : ButtonStyle
[Get]
Signature
@get:Composable val Destructive: ButtonStyle
Primary : ButtonStyle
[Get]
Signature
@get:Composable val Primary: ButtonStyle
Secondary : ButtonStyle
[Get]
Signature
@get:Composable val Secondary: ButtonStyle