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
- Viewers, editors and actions - registering one
- EmptyState - the component it reads like