Skip to main content

FileThumbnailFabric component

Component for rendering a file upload preview thumbnail.

📝 Signature​

FileThumbnailFabric(props: {
controller: IFileController;
service?: IFileService;
host?: (props: { children: ReactNode }) => JSX.Element;
error?: ReactNode;
loading?: ReactNode;
}): JSX.Element

📇 Props​

NameTypeOptionalDescription
controllerIFileController[]NoSpecifies the file controller (see IFileController).
serviceIFileService[]YesSpecifies the file service (see IFileService).
host(props: { children: ReactNode }) => JSX.ElementYesSpecifies the host.
errorReactNodeYesSpecifies the error icon.
loadingReactNodeYesSpecifies the loading icon.

↩ī¸ Return value​

Returns the JSX.Element for the component.