Filter: matches when data.component === id. Pairs with role tokens that
use component-based routing, e.g. Dialog and Popover.
The first type parameter narrows data.props to the rendered child's
expected props shape so the spread {...data.props} type-checks at the
call site. Component is inferred from the id argument and rarely needs
to be specified; the common override is just component<MyProps>(Dialog, id).
Filter: matches when
data.component === id. Pairs with role tokens that use component-based routing, e.g.DialogandPopover.The first type parameter narrows
data.propsto the rendered child's expected props shape so the spread{...data.props}type-checks at the call site.Componentis inferred from theidargument and rarely needs to be specified; the common override is justcomponent<MyProps>(Dialog, id).