+objectui#9701 repaired one instance of this. Eight sibling renderers — `alert-dialog`, `dialog`, `drawer`, `dropdown-menu`, `hover-card`, `popover`, `sheet` and `tooltip` — carried the identical shape: the authored slot handed straight to a Radix `*Trigger` with `asChild` written unconditionally. `asChild` resolves the primitive to its `Slot`, which merges onto its child through `React.Children.only`: a single React element, and nothing else. Both published faces say a bare string is legal on these keys — the TypeScript union `SchemaNode` names `string` explicitly, and the zod mirror types each `trigger` against that same union — so `trigger: 'Open it'`, the most natural thing to write for something called a trigger, validated twice and then threw, painting `Component "…" failed to render` with no diagnostic naming the key.
0 commit comments