EdgeButtonDefaults

object EdgeButtonDefaults


Contains the default values used by EdgeButton.

Summary

Public functions

Dp
iconSizeFor(edgeButtonSize: EdgeButtonSize)

Recommended icon size for a given edge button size.

Public properties

Dp

The recommended icon size when used with EdgeButtonSize.ExtraSmall.

Dp

The recommended icon size when used with EdgeButtonSize.Large.

Dp

The recommended icon size when used with EdgeButtonSize.Medium.

Dp

The recommended icon size when used with EdgeButtonSize.Small.

Public functions

iconSizeFor

fun iconSizeFor(edgeButtonSize: EdgeButtonSize): Dp

Recommended icon size for a given edge button size.

Parameters
edgeButtonSize: EdgeButtonSize

The size of the edge button

Public properties

ExtraSmallIconSize

Added in 1.0.0-alpha30
val ExtraSmallIconSizeDp

The recommended icon size when used with EdgeButtonSize.ExtraSmall.

LargeIconSize

Added in 1.0.0-alpha30
val LargeIconSizeDp

The recommended icon size when used with EdgeButtonSize.Large.

MediumIconSize

Added in 1.0.0-alpha30
val MediumIconSizeDp

The recommended icon size when used with EdgeButtonSize.Medium.

SmallIconSize

Added in 1.0.0-alpha30
val SmallIconSizeDp

The recommended icon size when used with EdgeButtonSize.Small.