import { HTMLAttributes } from 'react'; import { ExtractRecordPaths, HintedString } from 'ra-core'; import { FieldProps } from '../../lib/field.type.ts'; /** * Render a link to a file based on a path contained in a record field * * @example * import { FileField } from '@/components/admin/file-field'; * * * * // renders the record { id: 123, url: 'doc.pdf', title: 'Presentation' } as *
* Presentation *
*/ export declare const FileField: = Record>(props: FileFieldProps) => import("react/jsx-runtime").JSX.Element | null; export interface FileFieldProps = Record> extends FieldProps, HTMLAttributes { /** * The source of the link to the file, for an array of files. */ src?: string; title?: HintedString>; target?: HTMLAnchorElement["target"]; download?: HTMLAnchorElement["download"]; }