import{jt as e,kt as t}from"./StreamlitMarkdown.CwaSe4JX.js";import{t as n}from"./useLabel.C-Ykm1VU.js";function r(r){let{description:i,errorMessage:a,isInvalid:o,validationState:s}=r,{labelProps:c,fieldProps:l}=n(r),u=e([!!i,!!a,o,s]),d=e([!!i,!!a,o,s]);return l=t(l,{"aria-describedby":[u,d,r[`aria-describedby`]].filter(Boolean).join(` `)||void 0}),{labelProps:c,fieldProps:l,descriptionProps:{id:u},errorMessageProps:{id:d}}}export{r as t};