Package-level declarations

Types

Link copied to clipboard
data class ButtonFeedback(val soundEffect: Int? = SoundEffectConstants.CLICK, val hapticFeedbackType: HapticFeedbackType? = HapticFeedbackType.ContextClick)

Configures feedback behavior for button interactions.

Link copied to clipboard

Logical icon position; Start and End follow the layout direction.

Link copied to clipboard

The five Material 3 Expressive button size classes.

Link copied to clipboard

Visual treatment shared by labelled and icon-only buttons.

Properties

Link copied to clipboard

Expressive container height for this size class.

Functions

Link copied to clipboard
fun AnimatedIconButtonDirection(modifier: Modifier = Modifier, visible: Boolean = true, enabled: Boolean = true, icon: ToolkitIcon, contentDescription: String? = null, onClick: () -> Unit, durationMillis: Int? = null, autoAnimate: Boolean = true, feedback: ButtonFeedback = ButtonFeedback(), fromRight: Boolean = false, iconSize: Dp = SizeConstants.TwentyFourSize, ga4Event: Ga4EventData? = null)

Icon action button with slide, fade, and scale visibility transitions. Icon replacements crossfade in place without replaying the entrance. Click feedback, playback, and analytics follow GeneralButton.

Link copied to clipboard
fun GeneralButton(onClick: () -> Unit, modifier: Modifier = Modifier, style: GeneralButtonStyle = GeneralButtonStyle.Filled, enabled: Boolean = true, label: String? = null, icon: ToolkitIcon? = null, iconPosition: ButtonIconPosition = ButtonIconPosition.Start, contentDescription: String? = label, measurements: ButtonMeasurements = ButtonMeasurements.Small, iconSize: Dp? = null, iconTint: Color? = null, containerColor: Color? = null, contentColor: Color? = null, shape: Shape? = null, feedback: ButtonFeedback = ButtonFeedback(), ga4Event: Ga4EventData? = null)

Adaptive action button. A nonblank label selects a content button; otherwise icon is required. contentDescription is optional; for icon-only actions, null marks the icon as decorative. A labelled action uses its visible text unless an explicit description replaces it. Icons beside labels are decorative.