Generate data-{name}="value" HTML attribute
[Parameter][HtmlData("collapse")]public bool Active { get; set; } [Parameter][HtmlData("toggle","active")]public bool Toggle { get; set; }
<Component Active/> <div data-collaspe="true"></div> <Component Toggle/> <div data-toggle="acitve"></div>
Last updated 1 year ago