exportconstDefault=()=>{constplaceholder=text("Placeholder","Select Date");constlabel=text("Label","Date *");constminValue=text("Min Value (YYYY-MM-DD)","");constmaxValue=text("Max Value (YYYY-MM-DD)","");constreadonly=boolean("Read Only",false);constinvalid=boolean("Invalid",false);constrequired=boolean("Required",false);constdisabled=boolean("Disabled",false);consterror=text("Error","");constname=text("Name","input-form-name");returnhtml`<chameleon-datename="${name}".placeholder="${placeholder}"?readonly="${readonly}".label="${label}".min="${minValue}".max="${maxValue}"?required="${required}"?invalid="${invalid}"?disabled="${disabled}".validationMessage="${error}"></chameleon-date> `;};
Error State
exportconstErrorState=()=>html`<chameleon-dateplaceholder="Select Date"label="Date *"invalid="true"validationMessage="Date must be selected"></chameleon-date>`;