import{l as e,s as t}from"./preact.module-CNakwbc9.js";import{t as n}from"./jsxRuntime.module-Cao1NCKs.js";import{et as r}from"./hooks-ClTXKdUl.js";e();function i({name:e,label:i,title:a,className:o,children:s,description:c,labelRef:l,disabled:u,style:d,error:f}){let p=r(e),m=t(s,{id:p});return n(`div`,{className:`form-group ${o} ${u?`disabled`:``}`,title:a,style:d,children:[i&&n(`label`,{style:{width:`100%`},ref:l,htmlFor:p,children:i}),m,f&&n(`div`,{children:n(`small`,{className:`form-text text-danger`,children:f})}),c&&n(`div`,{children:n(`small`,{className:`form-text`,children:c})})]})}export{i as t};