import { cn } from "@/lib/utils"; import { Input } from "../input"; import { Label } from "../label"; import { useId } from "react"; interface TextInputProps extends React.ComponentProps { label?: string; } function TextInput({ className, label, ...props }: TextInputProps) { const id = useId(); const inputId = props.id || id; return (
{label && ( )} {props["aria-invalid"] && (

{props["aria-errormessage"]}

)}
); } export { TextInput };