FallbackViewer

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


Back to top

MIT licensed. Pre-1.0 - the surface is still moving.