| title | TextViewer |
|---|---|
| parent | Surfaces, shells and resources |
| grand_parent | Components |
{: .no_toc }
Plain text, for a resource with no more specific viewer.
import { TextViewer } from '@textui/documents';
<TextViewer uri="file:///etc/hosts" />| Prop | Type | Default | |
|---|---|---|---|
resource |
Resource |
||
uri |
string |
||
content |
string |
Plus everything on BoxProps.
Takes a resource, a uri or content directly - the last of which is what makes it testable without a provider.
Registered against text kinds, and beaten by any viewer that claims something more specific.
- CodeViewer - the component underneath
- FallbackViewer - when even text is not right