import d from"react";import{FormControl as i,Input as C,InputGroup as c,Text as t}from"@chakra-ui/react";import{jsx as o,jsxs as r}from"react/jsx-runtime";var s=({label:u,error:n,placeholder:e,helperText:p,isInvalid:f,as:m=C,InputLeftAddon:I,...a},l)=>r(i,{isInvalid:f,children:[o(t,{children:u}),r(c,{mt:"2",children:[I,o(m,{placeholder:e,...a,ref:l})]}),p&&o(t,{fontSize:"12",children:p}),n&&o(t,{fontSize:"12",color:"red.300",children:n})]}),F=d.forwardRef(s);export{F as default};
