Bug
At the moment it's impossible to use any widget that depends on a resource as a Custom Element, because the only way to create/pass a resource is via middleware from the parent. For Custom Elements we may need a special wrapper to make this more "dom" like.