Package-level declarations

Types

Link copied to clipboard

Contains the default values used by Selectable.

Link copied to clipboard

Contains the default values used by Toggleable.

Functions

Link copied to clipboard
@Composable
fun Selectable(selected: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, style: Style = SelectableDefaults.style(), interactionSource: MutableInteractionSource? = null, content: @Composable BoxScope.() -> Unit)

Base selectable component for building single-selection controls (radio buttons, tabs).

Link copied to clipboard
@Composable
fun Toggleable(checked: Boolean, onCheckedChange: (Boolean) -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, style: Style = ToggleableDefaults.style(), interactionSource: MutableInteractionSource? = null, content: @Composable BoxScope.() -> Unit)

Base toggleable component for building selection controls (switches, checkboxes, radio buttons).