import{r,l as s,c as p,o as d,d as a,t as i}from"./app-fEKA3BkQ.js";const c=["value","placeholder"],m={__name:"TextInput",props:{label:{type:String,default:""},placeholder:{type:String,default:""},modelValue:{type:[String],required:!1}},emits:["update:modelValue"],setup(l,{expose:u}){const e=r(null);return s(()=>{e.value.hasAttribute("autofocus")&&e.value.focus()}),u({focus:()=>e.value.focus()}),(o,t)=>(d(),p("div",null,[a("label",null,i(l.label),1),a("input",{class:"input",value:l.modelValue,onInput:t[0]||(t[0]=n=>o.$emit("update:modelValue",n.target.value)),placeholder:l.placeholder,ref_key:"input",ref:e},null,40,c)]))}};export{m as _};
