code: function () {
              var _this = this;
              return typeof this.value === 'boolean' ? {
                  checked: this.value,
                  onChange: function (e) { return _this.set(Boolean(e.target.checked)); }
              } : {
                  value: this.value,
                  onChange: function (e) { return _this.set(e.target.value); }
              };
          }
docs: <input { ...link.props } />