chore: initial Untitled UI Vite scaffold with FontAwesome Pro

This commit is contained in:
2026-03-16 14:23:23 +05:30
commit 3a338b33dd
163 changed files with 27081 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import type { ReactNode, Ref } from "react";
import type { TextProps as AriaTextProps } from "react-aria-components";
import { Text as AriaText } from "react-aria-components";
import { cx } from "@/utils/cx";
interface HintTextProps extends AriaTextProps {
/** Indicates that the hint text is an error message. */
isInvalid?: boolean;
ref?: Ref<HTMLElement>;
children: ReactNode;
}
export const HintText = ({ isInvalid, className, ...props }: HintTextProps) => {
return (
<AriaText
{...props}
slot={isInvalid ? "errorMessage" : "description"}
className={cx(
"text-sm text-tertiary",
// Invalid state
isInvalid && "text-error-primary",
"group-invalid:text-error-primary",
className,
)}
/>
);
};
HintText.displayName = "HintText";