0.9.1-alpha.18
Alpha@xaui/native@0.9.1-alpha.18
Patch Changes
-
345b3e0:
Icon's R14 boundary moves from a comment into the typeIconPropsdeclared the style props andstylefor all three forms, but only thesourceform applies them — it is the one where we render the node. So this compiled and silently did nothing:<Icon as={Trash2} marginEnd={8} />The props are a discriminated union now:
as, a raw SVG child andsourceare mutually exclusive, and onlysourcecarries R14. The call above is a compile error that points atsizeandcolor, the levers the other two forms actually have.Iconalso gains the demo screen it never had — the three forms, the cascade from prop to slot to theme, and a raw SVG having its baked-in size overridden. Not having one is why the gap went unnoticed: nobody had tried writing a margin on an icon.