Package-level declarations
Types
Link copied to clipboard
interface ButtonSize
Size configuration for a Button, including contentPadding, font, and minHeight. Implementations of this interface customize the appearance and dimensions of Button.
Link copied to clipboard
interface ButtonStyle
Style configuration for a Button, including buttonColors and border settings. Implementations of this interface customize the visual appearance of Button.
Link copied to clipboard
A stable interface for defining color properties for a button, extending ButtonColors. This interface adds support for specifying a border color that adapts to the button's state.
Link copied to clipboard
object KPButtonDefaults
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
fun KPButton(onClick: () -> Unit, style: ButtonStyle, size: ButtonSize, modifier: Modifier = Modifier, enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, elevation: ButtonElevation? = KPButtonDefaults.elevation(), shape: Shape = MaterialTheme.shapes.small, border: BorderStroke? = style.getBorder(width = 1.dp, enabled = enabled), colors: ButtonColors = style.buttonColors, contentPadding: PaddingValues = size.contentPadding, content: @Composable RowScope.() -> Unit)
A customizable button component that wraps androidx.compose.material.Button. It adapts colors, paddings, and other properties based on the provided style and size parameters.