const e=window.EdelElements.h;class t{constructor(){this.grid=!1,this.spaced=!1}render(){return e("form",{class:this.getClasses(),onSubmit:e=>this.handleEvent(e)},e("slot",null))}hostData(){return{class:"form"}}getClasses(){return{"form--grid":this.grid,"form--spaced":this.spaced}}handleEvent(e){e&&e.preventDefault(),this.emit.emit(e)}static get is(){return"edel-form"}static get properties(){return{grid:{type:Boolean,attr:"grid"},hostElement:{elementRef:!0},spaced:{type:Boolean,attr:"spaced"}}}static get events(){return[{name:"emit",method:"emit",bubbles:!0,cancelable:!0,composed:!0}]}}export{t as EdelForm};