import{s as e}from"./utils-BO1RPuol.js";import{aa as t}from"./index-CsuVxiRQ.js";import{t as n}from"./textarea-BD25PH-h.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};