import{o as e}from"./utils-Dac180Gn.js";import{Ki as t}from"./index-BP3TYB4i.js";import{t as n}from"./textarea-DijfUAYL.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};