import wn from '../../../../../../node_modules/preact/compat/dist/compat.module.mjs';
import styled from '../../../../../../node_modules/@mui/material/styles/styled.mjs';

const StyledLabelContainer = styled('span')(()=>({
        display: 'flex',
        alignItems: 'center'
    }));
const LabelCore = ({ children, disabled, htmlFor, required, variant = 'body2', TypographyComponent: Typography, labelColor })=>{
    return /*#__PURE__*/ wn.createElement(StyledLabelContainer, null, /*#__PURE__*/ wn.createElement("label", {
        "aria-required": required,
        htmlFor: htmlFor
    }, /*#__PURE__*/ wn.createElement(Typography, {
        color: labelColor,
        disabled: disabled,
        variant: variant
    }, children)), required && /*#__PURE__*/ wn.createElement(Typography, {
        color: "error",
        disabled: disabled,
        variant: "body2"
    }, "*"));
};

export { LabelCore };
//# sourceMappingURL=Label.mjs.map
