Custom element for code mirror 6

I’d like to use code mirror 6 in an Elm project via a custom element. Does anyone have example code that I could use to get started?