RadioButtonDefaults


object RadioButtonDefaults


Contains the default values used by RadioButtons and SplitRadioButtons

Summary

Public functions

RadioButtonColors

Creates a RadioButtonColors for use in a RadioButton.

RadioButtonColors
@Composable
radioButtonColors(
    selectedContainerColor: Color,
    selectedContentColor: Color,
    selectedSecondaryContentColor: Color,
    selectedIconColor: Color,
    unselectedContainerColor: Color,
    unselectedContentColor: Color,
    unselectedSecondaryContentColor: Color,
    unselectedIconColor: Color,
    disabledSelectedContainerColor: Color,
    disabledSelectedContentColor: Color,
    disabledSelectedSecondaryContentColor: Color,
    disabledSelectedIconColor: Color,
    disabledUnselectedContainerColor: Color,
    disabledUnselectedContentColor: Color,
    disabledUnselectedSecondaryContentColor: Color,
    disabledUnselectedIconColor: Color
)

Creates a RadioButtonColors for use in a RadioButton.

SplitRadioButtonColors

Creates a SplitRadioButtonColors for use in a SplitRadioButton.

SplitRadioButtonColors
@Composable
splitRadioButtonColors(
    selectedContainerColor: Color,
    selectedContentColor: Color,
    selectedSecondaryContentColor: Color,
    selectedSplitContainerColor: Color,
    unselectedContainerColor: Color,
    unselectedContentColor: Color,
    unselectedSecondaryContentColor: Color,
    unselectedSplitContainerColor: Color,
    disabledSelectedContainerColor: Color,
    disabledSelectedContentColor: Color,
    disabledSelectedSecondaryContentColor: Color,
    disabledSelectedSplitContainerColor: Color,
    disabledUnselectedContainerColor: Color,
    disabledUnselectedContentColor: Color,
    disabledUnselectedSecondaryContentColor: Color,
    disabledUnselectedSplitContainerColor: Color
)

Creates a SplitRadioButtonColors for use in a SplitRadioButton.

Public properties

PaddingValues

The default content padding used by RadioButton

Public functions

radioButtonColors

Added in 1.0.0-alpha21
@Composable
fun radioButtonColors(): RadioButtonColors

Creates a RadioButtonColors for use in a RadioButton.

radioButtonColors

@Composable
fun radioButtonColors(
    selectedContainerColor: Color = Color.Unspecified,
    selectedContentColor: Color = Color.Unspecified,
    selectedSecondaryContentColor: Color = Color.Unspecified,
    selectedIconColor: Color = Color.Unspecified,
    unselectedContainerColor: Color = Color.Unspecified,
    unselectedContentColor: Color = Color.Unspecified,
    unselectedSecondaryContentColor: Color = Color.Unspecified,
    unselectedIconColor: Color = Color.Unspecified,
    disabledSelectedContainerColor: Color = Color.Unspecified,
    disabledSelectedContentColor: Color = Color.Unspecified,
    disabledSelectedSecondaryContentColor: Color = Color.Unspecified,
    disabledSelectedIconColor: Color = Color.Unspecified,
    disabledUnselectedContainerColor: Color = Color.Unspecified,
    disabledUnselectedContentColor: Color = Color.Unspecified,
    disabledUnselectedSecondaryContentColor: Color = Color.Unspecified,
    disabledUnselectedIconColor: Color = Color.Unspecified
): RadioButtonColors

Creates a RadioButtonColors for use in a RadioButton.

Parameters
selectedContainerColor: Color = Color.Unspecified

The container color of the RadioButton when enabled and selected.

selectedContentColor: Color = Color.Unspecified

The content color of the RadioButton when enabled and selected.

selectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the RadioButton when enabled and selected, used for secondaryLabel content.

selectedIconColor: Color = Color.Unspecified

The icon color of the RadioButton when enabled and selected.

unselectedContainerColor: Color = Color.Unspecified

The container color of the RadioButton when enabled and not selected.

unselectedContentColor: Color = Color.Unspecified

The content color of a RadioButton when enabled and not selected.

unselectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of this RadioButton when enabled and not selected, used for secondaryLabel content

unselectedIconColor: Color = Color.Unspecified

The icon color of the RadioButton when enabled and not selected.

disabledSelectedContainerColor: Color = Color.Unspecified

The container color of the RadioButton when disabled and selected.

disabledSelectedContentColor: Color = Color.Unspecified

The content color of the RadioButton when disabled and selected.

disabledSelectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the RadioButton when disabled and selected, used for the secondary content.

disabledSelectedIconColor: Color = Color.Unspecified

The icon color of the RadioButton when disabled and selected.

disabledUnselectedContainerColor: Color = Color.Unspecified

The container color of the RadioButton when disabled and not selected.

disabledUnselectedContentColor: Color = Color.Unspecified

The content color of the RadioButton when disabled and not selected.

disabledUnselectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the RadioButton when disabled and not selected, used for secondary label content.

disabledUnselectedIconColor: Color = Color.Unspecified

The icon color of the RadioButton when disabled and not selected.

splitRadioButtonColors

Added in 1.0.0-alpha21
@Composable
fun splitRadioButtonColors(): SplitRadioButtonColors

Creates a SplitRadioButtonColors for use in a SplitRadioButton.

splitRadioButtonColors

@Composable
fun splitRadioButtonColors(
    selectedContainerColor: Color = Color.Unspecified,
    selectedContentColor: Color = Color.Unspecified,
    selectedSecondaryContentColor: Color = Color.Unspecified,
    selectedSplitContainerColor: Color = Color.Unspecified,
    unselectedContainerColor: Color = Color.Unspecified,
    unselectedContentColor: Color = Color.Unspecified,
    unselectedSecondaryContentColor: Color = Color.Unspecified,
    unselectedSplitContainerColor: Color = Color.Unspecified,
    disabledSelectedContainerColor: Color = Color.Unspecified,
    disabledSelectedContentColor: Color = Color.Unspecified,
    disabledSelectedSecondaryContentColor: Color = Color.Unspecified,
    disabledSelectedSplitContainerColor: Color = Color.Unspecified,
    disabledUnselectedContainerColor: Color = Color.Unspecified,
    disabledUnselectedContentColor: Color = Color.Unspecified,
    disabledUnselectedSecondaryContentColor: Color = Color.Unspecified,
    disabledUnselectedSplitContainerColor: Color = Color.Unspecified
): SplitRadioButtonColors

Creates a SplitRadioButtonColors for use in a SplitRadioButton.

Parameters
selectedContainerColor: Color = Color.Unspecified

The container color of the SplitRadioButton when enabled and selected.

selectedContentColor: Color = Color.Unspecified

The content color of the SplitRadioButton when enabled and selected.

selectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the SplitRadioButton when enabled and selected, used for secondaryLabel content.

selectedSplitContainerColor: Color = Color.Unspecified

The split container color of the SplitRadioButton when enabled and selected.

unselectedContainerColor: Color = Color.Unspecified

The container color of the SplitRadioButton when enabled and not selected.

unselectedContentColor: Color = Color.Unspecified

The content color of the SplitRadioButton when enabled and not selected.

unselectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the SplitRadioButton when enabled and not selected, used for secondaryLabel content.

unselectedSplitContainerColor: Color = Color.Unspecified

The split container color of the SplitRadioButton when enabled and not selected.

disabledSelectedContainerColor: Color = Color.Unspecified

The container color of the SplitRadioButton when disabled and selected.

disabledSelectedContentColor: Color = Color.Unspecified

The content color of the SplitRadioButton when disabled and selected.

disabledSelectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the SplitRadioButton when disabled and selected, used for secondaryLabel content.

disabledSelectedSplitContainerColor: Color = Color.Unspecified

The split container color of the SplitRadioButton when disabled and selected.

disabledUnselectedContainerColor: Color = Color.Unspecified

The container color of the SplitRadioButton when disabled and not selected.

disabledUnselectedContentColor: Color = Color.Unspecified

The content color of the SplitRadioButton when disabled and not selected.

disabledUnselectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the SplitRadioButton when disabled and not selected, used for secondaryLabel content.

disabledUnselectedSplitContainerColor: Color = Color.Unspecified

The split container color of the SplitRadioButton when disabled and not selected.

Public properties

ContentPadding

Added in 1.0.0-alpha21
val ContentPaddingPaddingValues

The default content padding used by RadioButton