TextViewer
Plain text, for a resource with no more specific viewer.
import { TextViewer } from '@textui/documents';
<TextViewer uri="file:///etc/hosts" />
Props
| 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.
See also
- CodeViewer - the component underneath
- FallbackViewer - when even text is not right