When using toolkits like SemanticUI ( https://semantic-ui.com ) they introduce custom attributes in otherwise seemingly HTML tags. eg data-tab in case of tab panel (expand the very first example at Tab | Semantic UI )
<div class="ui top attached tabular menu">
<a class="active item" data-tab="first">First</a>
<a class="item" data-tab="second">Second</a>
<a class="item" data-tab="third">Third</a>
</div>
<div class="ui bottom attached active tab segment" data-tab="first">
First
</div>
<div class="ui bottom attached tab segment" data-tab="second">
Second
</div>
<div class="ui bottom attached tab segment" data-tab="third">
Third
</div>
or data-value in case of a drop down (expand example titled Selection at Dropdown | Semantic UI )
<div class="ui selection dropdown">
<input name="gender" type="hidden">
<i class="dropdown icon"></i>
<div class="default text">Gender</div>
<div class="menu">
<div class="item" data-value="1">Male</div>
<div class="item" data-value="0">Female</div>
</div>
</div>
Is there a way to reuse the kotlinx.html DSL builders but pass in the custom attribute name value pairs? If not what would be a good compact way to extend the DSL elements in kotlinx.html?