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


Back to top

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