So if an element like `iframe` is not in the DOM A...
# compose-web
c
So if an element like
iframe
is not in the DOM API, what does one do?
j
Write your own! Check out https://github.com/JetBrains/androidx/blob/compose-web-main/compose/web/src/jsMain/kotlin/androidx/compose/web/elements/Elements.kt and copy what they're doing. And if you're super nice send a PR with it!
🙏 2
You may need your own
Tag
subtype, which you can do.
object Iframe : Tag()
. And then you can hang any custom attributes (url, etc.) as extensions off of that. See https://github.com/JetBrains/androidx/blob/compose-web-main/compose/web/src/jsMain/kotlin/androidx/compose/web/attributes/Attrs.kt for that
🙏 2
c
Awesome that worked! 🙏
c
wow that looks pretty nice
c
You may need your own 
Tag
 subtype, which you can do.
Something like this? https://github.com/c5inco/portfolio-compose/blob/main/src/jsMain/kotlin/com/c5inco/portfolio/components/Iframe.kt
👌 1
1
h
So you don't currently generate all the Tags from a generator? If not, I will submit my Table Tags 😄
🔥 1
j
Correct, they are not generated. PRs for standard HTML tags are welcomed. Current
Table
tag is here: https://github.com/JetBrains/androidx/blob/compose-web-main/compose/web/src/jsMain/kotlin/androidx/compose/web/elements/Elements.kt#L440
👍 2