import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
import styles from './label.module.css.js';

const label = cva(styles.label, {
    variants: {
        size: {
            small: styles["label-small"],
            medium: styles["label-medium"],
            large: styles["label-large"],
        },
        required: {
            true: styles["label-required"],
        }
    },
    defaultVariants: {
        size: "small",
        required: false,
    },
});
function Label({ children, className, size, required, requiredIndicator = "*", htmlFor, ...props }) {
    return (jsxRuntimeExports.jsxs("label", { className: label({ size, required, className }), htmlFor: htmlFor, ...props, children: [children, required && (jsxRuntimeExports.jsx("span", { className: styles["required-indicator"], "aria-hidden": "true", role: "presentation", children: requiredIndicator }))] }));
}

export { Label };
//# sourceMappingURL=label.js.map
