Michael Evans
01/09/2022, 5:42 PMBig Chungus
01/09/2022, 5:43 PMMichael Evans
01/09/2022, 5:45 PMMichael Evans
01/09/2022, 5:59 PMopen class CUSTOM(tagName: String, initialAttributes : Map<String, String>, override val consumer : TagConsumer<*>)
: HTMLTag(tagName, consumer, initialAttributes, null, false, false),
HtmlBlockTag {
}
inline fun RBuilder.custom(tagName: String, classes: String? = null, block: RDOMBuilder<CUSTOM>.() -> Unit) = tag(block) { CUSTOM(tagName, attributesMapOf("class", classes), it) }
But looks like it's sibling types are all defined in kotlin-react-dom-legacy, and the newer kotlin-react-dom goes for generation instead of manual declaration of the builders.
Think it's worth a pull request or are those legacy builders on their way out anyway?turansky
01/09/2022, 6:03 PMMichael Evans
01/09/2022, 6:07 PMMichael Evans
01/09/2022, 6:07 PMMichael Evans
01/09/2022, 6:15 PMMichael Evans
01/09/2022, 6:17 PMturansky
01/09/2022, 6:19 PMturansky
01/09/2022, 7:00 PMMichael Evans
01/09/2022, 7:03 PMMichael Evans
01/09/2022, 7:03 PM