ButtonDefaults

object ButtonDefaults


Default values used for Button.

Summary

Public functions

Color

Derives a color suitable for use as the focused background color of a Button from the provided seedColor.

PaddingValues

Default content padding used for a Button with the specified buttonSize.

Public functions

calculateFocusedColor

Added in 1.0.0-alpha23
fun calculateFocusedColor(seedColor: Color): Color

Derives a color suitable for use as the focused background color of a Button from the provided seedColor.

Parameters
seedColor: Color

the base Color from which the focused background color will be derived

Returns
Color

a color to be used as the focused background Color

contentPadding

Added in 1.0.0-alpha23
@Composable
fun contentPadding(buttonSize: ButtonSize): PaddingValues

Default content padding used for a Button with the specified buttonSize.