Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 917 Bytes

File metadata and controls

36 lines (25 loc) · 917 Bytes
title FallbackViewer
parent Surfaces, shells and resources
grand_parent Components

FallbackViewer

{: .no_toc }

What opens when nothing else claims the resource.

import { FallbackViewer } from '@textui/documents';

<FallbackViewer uri="file:///srv/blob.bin" />

Props

Prop Type Default
resource Resource
uri string

Plus everything on BoxProps.

Shows what is known - the URI, the kind, the size - and says plainly that there is no viewer for it. It exists so an unknown kind is a readable message rather than an empty pane or a crash.

Registering a viewer for the kind is what replaces it.

See also