| title | FallbackViewer |
|---|---|
| parent | Surfaces, shells and resources |
| grand_parent | Components |
{: .no_toc }
What opens when nothing else claims the resource.
import { FallbackViewer } from '@textui/documents';
<FallbackViewer uri="file:///srv/blob.bin" />| 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.
- Viewers, editors and actions - registering one
- EmptyState - the component it reads like