import{_}from"./HM0z9jP5.js";import{u as v,_ as c,a as g}from"./qySFlK6I.js";import{d as x,o as h,c as $,w as n,_ as b,a as l,u as o,ai as w}from"./D1Lyb8Fc.js";import{u as L}from"./CgBS6165.js";import{u as k}from"./hVl3TV4U.js";import{u as y}from"./BsVKNlVi.js";const H=x({__name:"textarea",setup(U){L({title:"Textarea HTML Generator",meta:[{name:"description",content:"Generate HTML textarea with our HTML generator tool. Preview the result and copy the generated code to your website."}]});const{setBrowsers:p}=k(),d=y();p({chrome:!0,firefox:!0,safari:!0,edge:!0,opera:!0});const{form:e,update:i}=v({name:"myTextarea",placeholder:"Your message here",value:"",numCols:20,numRows:10,minLength:10,maxLength:500,spellcheck:!1,required:!0});return i.value=()=>{const r=`<textarea name="${e.value.name}"${e.value.placeholder?` placeholder="${e.value.placeholder}"`:""}${e.value.numCols?` cols="${e.value.numCols}"`:""}${e.value.numRows?` rows="${e.value.numRows}"`:""}${e.value.minLength?` minlength="${e.value.minLength}"`:""}${e.value.maxLength?` maxlength="${e.value.maxLength}"`:""}${e.value.spellcheck?" spellcheck":""}${e.value.required?" required":""}>${e.value.value}</textarea>`;d.preview.html=r,d.code={value:r}},(r,a)=>{const m=_,t=c,s=w,f=g,V=b;return h(),$(V,{name:"generator",type:"HTML",heading:"Textarea",preview:""},{content:n(()=>[l(f,null,{default:n(()=>[l(t,null,{default:n(()=>[l(m,{modelValue:o(e).name,"onUpdate:modelValue":a[0]||(a[0]=u=>o(e).name=u),label:"Name"},null,8,["modelValue"])]),_:1}),l(t,null,{default:n(()=>[l(m,{modelValue:o(e).placeholder,"onUpdate:modelValue":a[1]||(a[1]=u=>o(e).placeholder=u),label:"Placeholder"},null,8,["modelValue"])]),_:1}),l(t,null,{default:n(()=>[l(m,{modelValue:o(e).value,"onUpdate:modelValue":a[2]||(a[2]=u=>o(e).value=u),label:"Default value"},null,8,["modelValue"])]),_:1}),l(t,null,{default:n(()=>[l(m,{modelValue:o(e).numCols,"onUpdate:modelValue":a[3]||(a[3]=u=>o(e).numCols=u),label:"Number of columns",type:"number",min:"0"},null,8,["modelValue"])]),_:1}),l(t,null,{default:n(()=>[l(m,{modelValue:o(e).numRows,"onUpdate:modelValue":a[4]||(a[4]=u=>o(e).numRows=u),label:"Number of rows",type:"number",min:"0"},null,8,["modelValue"])]),_:1}),l(t,null,{default:n(()=>[l(m,{modelValue:o(e).minLength,"onUpdate:modelValue":a[5]||(a[5]=u=>o(e).minLength=u),label:"Minimum length",type:"number",min:"0"},null,8,["modelValue"])]),_:1}),l(t,null,{default:n(()=>[l(m,{modelValue:o(e).maxLength,"onUpdate:modelValue":a[6]||(a[6]=u=>o(e).maxLength=u),label:"Maximum length",type:"number",min:"0"},null,8,["modelValue"])]),_:1}),l(t,null,{default:n(()=>[l(s,{modelValue:o(e).spellcheck,"onUpdate:modelValue":a[7]||(a[7]=u=>o(e).spellcheck=u),label:"Spellcheck"},null,8,["modelValue"])]),_:1}),l(t,null,{default:n(()=>[l(s,{modelValue:o(e).required,"onUpdate:modelValue":a[8]||(a[8]=u=>o(e).required=u),label:"Required"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})}}});export{H as default};
