import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { cn } from "../../../utils/cn";
export const Label = ({ children, required = false, error = false, className, ...props }) => {
    return (_jsxs("label", { className: cn("block text-sm font-medium", error
            ? "text-error-600 dark:text-error-400"
            : "text-neutral-700 dark:text-neutral-300", className), ...props, children: [children, required && (_jsx("span", { className: "text-error-500 ml-1", "aria-label": "required", children: "*" }))] }));
};
export default Label;
