Shadow root in server-side Element
A shadow root can be created simply with the command:
A is not an actual element and only supports child element handling and getting the host element which contains the shadow root.
Java
@Tag("my-label")
public class MyLabel extends Component {
ShadowRoot shadowRoot = getElement().attachShadow();
Label textLabel = new Label("In the shadow");
}