flow icon indicating copy to clipboard operation
flow copied to clipboard

Support content elements in React adapter

Open platosha opened this issue 3 months ago • 0 comments

Add support for adding Flow components as children to ReactAdapterComponent.

Implementation idea:

  • add useContent(name: string) ReactAdapterElement hook, supports rendering a DOM placeholder in React
  • add the corresponding protected Element getContentElement(String name) Java ReactAdapterComponent method, that creates and returns the named container element.

Prototype: https://github.com/vaadin/flow-hilla-hybrid-example/tree/proto/flow-react-children

The first implementation could use two DOM wrapper elements, each with style "display: contents;".

platosha avatar May 15 '24 07:05 platosha