Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 887 Bytes

File metadata and controls

37 lines (26 loc) · 887 Bytes
title TextViewer
parent Surfaces, shells and resources
grand_parent Components

TextViewer

{: .no_toc }

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