import{o as e}from"./utils-Dac180Gn.js";import{Ki as t,ha as n}from"./index-8M5AnKdQ.js";var r=e();function i({label:e,error:i,required:a,htmlFor:o,id:s,...c}){let l=o||s;return(0,r.jsxs)(`div`,{className:`space-y-2`,children:[(0,r.jsxs)(t,{htmlFor:l,children:[e,` `,a&&(0,r.jsx)(`span`,{className:`text-destructive`,children:`*`})]}),(0,r.jsx)(n,{id:l,...c}),i&&(0,r.jsx)(`p`,{className:`text-sm text-destructive`,children:i})]})}export{i as t};