import type { InputProps } from "ra-core"; import { useInput, useResourceContext, FieldTitle } from "ra-core"; import { FormControl, FormError, FormField, FormLabel, } from "@/components/admin/form"; import { Input } from "@/components/ui/input"; import { Textarea } from "@/components/ui/textarea"; import { InputHelperText } from "@/components/admin/input-helper-text"; export type TextInputProps = InputProps & { multiline?: boolean; inputClassName?: string; } & React.ComponentProps<"textarea"> & React.ComponentProps<"input">; /** * Single-line or multiline text input for string values. * * Use `` for short text fields like titles or names. Set `multiline` to `true` * for longer content like descriptions or comments. Wraps shadcn's `` or `