Skip to content

FileFieldProps

FileFieldProps = BaseFieldProps & object

Defined in: packages/ui/src/types.ts:814

Props for the FileField read-only display component.

Displays a file icon, name, and formatted size. Resolves download URLs from @cfast/storage when a storage configuration is provided.

optional fileName: string

Display name for the file. Defaults to the value.

optional fileSize: number

File size in bytes for formatted display.

optional storage: unknown

Storage configuration for download URL resolution.

value: string | null | undefined

File key or path.