Latest Results
Accept a component as the rx.callout icon (#7716)
* Accept a component as the rx.callout icon
Callout.create passed props["icon"] to Icon.create(tag=...), which only
takes an icon name, so rx.icon("info") or an rx.cond/rx.match of icons
raised TypeError. It also left icon in props, so CalloutRoot rendered the
name as an "icon" CSS property.
Pop icon from props, wrap a name in Icon as before, and use a component
as-is.
Closes #3189
Co-authored-by: Claude <noreply@anthropic.com>
* Pass a component Var through as the callout icon
An @rx.memo argument typed rx.Var[rx.Component], or an rx.cond over two
of them, is a ComponentVar rather than a Component, so it still went to
Icon.create and raised TypeError. Treat it as a component too; a value
that is neither still goes to Icon, which rejects non-strings.
Co-authored-by: Claude <noreply@anthropic.com>
* Assert the callout keeps the ComponentVar icon itself
Check that the icon's Bare child holds the same Var object, instead of
only looking for its name in the rendered output.
Co-authored-by: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com> Latest Branches
0%
claude/clientstatevar-context-refactor-jv3pig 0%
harsh21234i:fix/7617-deploy-url-playwright +7%
benedikt-bartscher:state-update-codec © 2026 CodSpeed Technology