You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 3, 2023. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+11
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,17 @@ And now in your HTML you can use the component:
81
81
82
82
Any attributes are passed into your Elm app as Flags.
83
83
84
+
## Shadow Dom
85
+
86
+
By default Elm will render inside your custom element directly, if you want to isolate the Elm renderer dom using shadow dom you can register the custom element like this:
You can also hook up a component that uses ports. The third argument to `elmWebComponents.register` is an object that can take a function that will be called with the ports object that Elm provides, so you can then hook into it and `subscribe` and `send` to them as you would normally:
0 commit comments