import{k as s,q as r,c as p,o as i,a,t as d}from"./app-Do7K7VDV.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=s(null);return r(()=>{e.value.hasAttribute("autofocus")&&e.value.focus()}),u({focus:()=>e.value.focus()}),(o,t)=>(i(),p("div",null,[a("label",null,d(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 _};
