ButtonDefaults

Object holding default values used by buttons

Properties

Link copied to clipboard

A pre-defined size for buttons

Link copied to clipboard

A pre-defined size for buttons

Link copied to clipboard

A pre-defined size for buttons

Link copied to clipboard

A pre-defined size for buttons

Functions

Link copied to clipboard
@Composable
fun buttonColors(): ButtonColors

Creates a default ButtonColors object with the accent color from the Pico theme as the container color and the on-accent color from the Pico theme as the content color.

@Composable
fun buttonColors(containerColor: Color = Color.Unspecified, contentColor: Color = Color.Unspecified): ButtonColors

Creates a ButtonColors that represents the default container and content colors used in a Button.

Link copied to clipboard
fun buttonSize(width: Dp = Dp.Unspecified, height: Dp = Dp.Unspecified, minWidth: Dp = Dp.Unspecified, maxWidth: Dp = Dp.Unspecified, minHeight: Dp = Dp.Unspecified, maxHeight: Dp = Dp.Unspecified): ButtonSize

Creates a ButtonSize that presents sizes used by Button

Link copied to clipboard
@Composable
fun buttonVibrants(): ButtonVibrants

Creates a default ButtonVibrants object with the accent vibrant from the Pico theme as the container vibrant and the on-accent vibrant from the Pico theme as the content vibrant.

@Composable
fun buttonVibrants(containerVibrant: Vibrant = Vibrant.Unspecified, contentVibrant: Vibrant = Vibrant.Unspecified): ButtonVibrants

Creates a ButtonVibrants that represents the default container and content vibrants used in a Button.