• Creates a component amendment (and decorator) that attaches shadow root to decorated component instance.

    Returns

    New component amendment and decorator.

    Type Parameters

    • TClass extends ComponentClass<any, TClass> = Class<any>

      Amended component class type.

    • TAmended extends AeComponent<TClass, TAmended> = AeComponent<TClass>

      Amended component entity type.

    Parameters

    • def: Readonly<ShadowRootInit> = defaultShadowContentDef

      Shadow content root definition. Uses mode: 'open' by default.

    Returns ComponentAmendment<TClass, TAmended>

Generated using TypeDoc