Back to Remix

Minor.09 Allow Single Mix Values

packages/component/.changes/minor.09-allow-single-mix-values.md

2.11.1355 B
Original Source

Allow the mix prop to accept either a single mixin descriptor or an array of mixin descriptors.

This lets one-off mixins use mix={...} while preserving array support for composed mixins, and component render props now normalize mix to an array or undefined so wrapper components can compose mix values without special casing single descriptors.