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,
    selectedControlColor: Color,
    unselectedContainerColor: Color,
    unselectedContentColor: Color,
    unselectedSecondaryContentColor: Color,
    unselectedIconColor: Color,
    unselectedControlColor: Color,
    disabledSelectedContainerColor: Color,
    disabledSelectedContentColor: Color,
    disabledSelectedSecondaryContentColor: Color,
    disabledSelectedIconColor: Color,
    disabledSelectedControlColor: Color,
    disabledUnselectedContainerColor: Color,
    disabledUnselectedContentColor: Color,
    disabledUnselectedSecondaryContentColor: Color,
    disabledUnselectedIconColor: Color,
    disabledUnselectedControlColor: 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,
    selectedControlColor: Color,
    unselectedContainerColor: Color,
    unselectedContentColor: Color,
    unselectedSecondaryContentColor: Color,
    unselectedSplitContainerColor: Color,
    unselectedControlColor: Color,
    disabledSelectedContainerColor: Color,
    disabledSelectedContentColor: Color,
    disabledSelectedSecondaryContentColor: Color,
    disabledSelectedSplitContainerColor: Color,
    disabledSelectedControlColor: Color,
    disabledUnselectedContainerColor: Color,
    disabledUnselectedContentColor: Color,
    disabledUnselectedSecondaryContentColor: Color,
    disabledUnselectedSplitContainerColor: Color,
    disabledUnselectedControlColor: Color
)

Creates a SplitRadioButtonColors for use in a SplitRadioButton.

Public properties

PaddingValues

The default content padding used by RadioButton

Shape

Recommended Shape for RadioButton.

Shape

Recommended Shape for SplitRadioButton.

Public functions

radioButtonColors

Added in 1.0.0-alpha30
@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,
    selectedControlColor: Color = Color.Unspecified,
    unselectedContainerColor: Color = Color.Unspecified,
    unselectedContentColor: Color = Color.Unspecified,
    unselectedSecondaryContentColor: Color = Color.Unspecified,
    unselectedIconColor: Color = Color.Unspecified,
    unselectedControlColor: Color = Color.Unspecified,
    disabledSelectedContainerColor: Color = Color.Unspecified,
    disabledSelectedContentColor: Color = Color.Unspecified,
    disabledSelectedSecondaryContentColor: Color = Color.Unspecified,
    disabledSelectedIconColor: Color = Color.Unspecified,
    disabledSelectedControlColor: Color = Color.Unspecified,
    disabledUnselectedContainerColor: Color = Color.Unspecified,
    disabledUnselectedContentColor: Color = Color.Unspecified,
    disabledUnselectedSecondaryContentColor: Color = Color.Unspecified,
    disabledUnselectedIconColor: Color = Color.Unspecified,
    disabledUnselectedControlColor: 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.

selectedControlColor: Color = Color.Unspecified

The selection control 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.

unselectedControlColor: Color = Color.Unspecified

The selection control 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.

disabledSelectedControlColor: Color = Color.Unspecified

The selection control 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.

disabledUnselectedControlColor: Color = Color.Unspecified

The selection control color of the RadioButton when disabled and not selected.

splitRadioButtonColors

Added in 1.0.0-alpha30
@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,
    selectedControlColor: Color = Color.Unspecified,
    unselectedContainerColor: Color = Color.Unspecified,
    unselectedContentColor: Color = Color.Unspecified,
    unselectedSecondaryContentColor: Color = Color.Unspecified,
    unselectedSplitContainerColor: Color = Color.Unspecified,
    unselectedControlColor: Color = Color.Unspecified,
    disabledSelectedContainerColor: Color = Color.Unspecified,
    disabledSelectedContentColor: Color = Color.Unspecified,
    disabledSelectedSecondaryContentColor: Color = Color.Unspecified,
    disabledSelectedSplitContainerColor: Color = Color.Unspecified,
    disabledSelectedControlColor: Color = Color.Unspecified,
    disabledUnselectedContainerColor: Color = Color.Unspecified,
    disabledUnselectedContentColor: Color = Color.Unspecified,
    disabledUnselectedSecondaryContentColor: Color = Color.Unspecified,
    disabledUnselectedSplitContainerColor: Color = Color.Unspecified,
    disabledUnselectedControlColor: 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.

selectedControlColor: Color = Color.Unspecified

The color of the radio control when 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.

unselectedControlColor: Color = Color.Unspecified

The color of the radio control when unselected

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.

disabledSelectedControlColor: Color = Color.Unspecified

The radio control color 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.

disabledUnselectedControlColor: Color = Color.Unspecified

The radio control color when disabled and unselected.

Public properties

ContentPadding

Added in 1.0.0-alpha30
val ContentPaddingPaddingValues

The default content padding used by RadioButton

radioButtonShape

Added in 1.0.0-alpha30
val radioButtonShapeShape

Recommended Shape for RadioButton.

splitRadioButtonShape

Added in 1.0.0-alpha30
val splitRadioButtonShapeShape

Recommended Shape for SplitRadioButton.