GeneralButton
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.
Feedback, analytics and icon replay run once per enabled click, before onClick. Do not add click feedback at call sites. Null color overrides retain each Material style's defaults, including disabled colors. iconTint follows ToolkitIcon tinting rules (Lottie must be tintable). Elevated icon-only buttons use a compact ElevatedButton with Material elevation and touch target.
measurements picks one of the five Material 3 Expressive size classes. Container height, shape, content padding, icon size, icon spacing and label typography all follow it, so a caller chooses a size rather than restating the specification. shape still overrides the resting shape when set.
iconSize pins the glyph to one size instead. Left null, the default, it scales with measurements (the labelled-button icon size beside a label, the icon-button size when this renders icon-only. Pass SizeConstants.ButtonIconSize where an icon should stay the size toolkit icons are drawn at everywhere else, which is what a row of small affordances such as a favourite, share or expand button wants; pass any other Dp for a one-off such as a drawer hamburger.
Either way the container keeps the dimensions of measurements; iconSize only ever changes the glyph.