https://kotlinlang.org logo
Title
a

Alexander Weickmann

08/22/2022, 10:48 AM
Hi all, any way to create a custom html tag element with the new kotlin-react-dom instead of the legacy? This used to work:
inline fun ChildrenBuilder.auiDropdownMenu(block: RDOMBuilder<AUI_DROPDOWN_MENU>.() -> Unit): Unit = tag(block) {
    AUI_DROPDOWN_MENU(mapOf(), it)
}
class AUI_DROPDOWN_MENU(
    initialAttributes: Map<String, String>,
    override val consumer: TagConsumer<*>
) : HTMLTag("aui-dropdown-menu", consumer, initialAttributes, null, false, false),
    CommonAttributeGroupFacadeFlowInteractivePhrasingContent
but now I want to migrate this code and cannot find out how to do it
a

andylamax

08/22/2022, 11:46 AM
@turansky
t

turansky

08/22/2022, 12:52 PM
val AuiDropdownMenu = IntrinsicType("aui-dropdown-menu")
a

Alexander Weickmann

08/22/2022, 2:22 PM
wow, that was fast. thx for the help. and also good to see that this is now so much easier