public CheckboxComponent() : base(MyCheckbox) { _checkbox = new InputElement(); _label = Create("label"); var builder = new LaraBuilder(ShadowRoot); builder.Push("div", "form-group form-check") .Push(_checkbox, "form-check-input") .Attribute("type", "checkbox") .On("click", () => UpdateLabel()) .Pop() .Push(_label) .Attribute("for", _checkbox.EnsureElementId()) .Pop() .Pop(); }