import React, { forwardRef } from "react";
import { StyledLabel, StyledText } from "./Label.styled.js";
const Label = forwardRef((props, ref) => {
    const { label, variant, children, ...rest } = props;
    const labelElement = label
        ? (React.createElement(StyledText, { ...(variant ? { variant } : undefined) }, label))
        : null;
    return (React.createElement(StyledLabel, { ...rest, ref: ref },
        labelElement,
        children));
});
Label.displayName = "Label";
Label.toString = () => StyledLabel.toString();
const LabelTextSelector = StyledText.toString();
export { Label, LabelTextSelector };
//# sourceMappingURL=Label.js.map