Package-level declarations

Types

Link copied to clipboard
data class AppSelectionOption(val label: String, val value: Any, val color: Color)

Data class representing an option in a selection component.

Link copied to clipboard

Types of buttons available in the design system.

Functions

Link copied to clipboard
fun AppButton(modifier: Modifier = Modifier, text: String? = null, onClick: () -> Unit, type: ButtonType = ButtonType.PRIMARY, imageSource: AppImageSource? = null, iconTint: Color? = null, enabled: Boolean = true, backgroundColor: Color? = null, testTag: String? = null)
fun AppButton(text: StringResource, onClick: () -> Unit, modifier: Modifier = Modifier, type: ButtonType = ButtonType.PRIMARY, imageSource: AppImageSource? = null, iconTint: Color? = null, enabled: Boolean = true, backgroundColor: Color? = null, testTag: String? = null)

A custom button component that supports different styles (Primary, Secondary, Tertiary) and an optional leading image.

Link copied to clipboard
Link copied to clipboard
fun AppSelection(modifier: Modifier = Modifier, expanded: Boolean, selectedOption: AppSelectionOption, options: List<AppSelectionOption>, onExpandedChange: (Boolean) -> Unit, onOptionSelected: (AppSelectionOption) -> Unit)

A customizable selection component using an exposed dropdown menu.

Link copied to clipboard
Link copied to clipboard
fun AppSelectionSimple(modifier: Modifier = Modifier, list: List<String>, onSelectionChanged: (AppSelectionOption) -> Unit, color: Color = MaterialTheme.colorScheme.onBackground)

A simplified selection component that takes a list of strings and manages its own state.

Link copied to clipboard
fun AppSwitcher(modifier: Modifier = Modifier, isChecked: Boolean, onCheckedChange: (Boolean) -> Unit, enabled: Boolean = true)

A custom Switch component with styled colors.

Link copied to clipboard
@Preview(showBackground = true)
fun AppSwitchesPreview()