import{s as e}from"./utils-CXcsdpX-.js";import{aa as t}from"./index-Ct5uU080.js";import{t as n}from"./textarea-Ca2twCQz.js";var r=e();function i({label:e,error:i,required:a,id:o,...s}){return(0,r.jsxs)(`div`,{className:`space-y-2`,children:[(0,r.jsxs)(t,{htmlFor:o,children:[e,` `,a&&(0,r.jsx)(`span`,{className:`text-destructive`,children:`*`})]}),(0,r.jsx)(n,{id:o,...s}),i&&(0,r.jsx)(`p`,{className:`text-sm text-destructive`,children:i})]})}export{i as t};