import{s as e}from"./utils-CXcsdpX-.js";import{Ra as t,aa as n}from"./index-Ct5uU080.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)(n,{htmlFor:l,children:[e,` `,a&&(0,r.jsx)(`span`,{className:`text-destructive`,children:`*`})]}),(0,r.jsx)(t,{id:l,...c}),i&&(0,r.jsx)(`p`,{className:`text-sm text-destructive`,children:i})]})}export{i as t};