Mixins / Inside-out composition
Inside-out view composition: foldkit-mixins
A reusable button or field starts simple, then accumulates props (className, iconClassName, compact, showTooltip, trackClick, ariaLabelOverride) until the component owns every design-system and feature concern. The alternative—copying the render function at each call site—throws away reuse.
foldkit-mixins solves this with typed extension points called Slots. A component author declares named structural points (root, input, label) once, and callers attach Styles (appearance) and Behaviors (attributes and mounts) from the outside without editing the component's markup or adding props.