Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python
532 B
Raw Blame
import { LabelWrapper } from "./label-wrapper";
import { Input } from "./ui/input";

export function LabelInput({
  label,
  helperText,
  id,
  required,
  ...props
}: {
  label: string;
  helperText: string;
  id: string;
  required: boolean;
} & React.InputHTMLAttributes<HTMLInputElement>) {
  return (
    <LabelWrapper
      label={label}
      helperText={helperText}
      id={id}
      required={required}
      disabled={props.disabled}
    >
      <Input id={id} data-testid={id} {...props} />
    </LabelWrapper>
  );
}