<Text>

<Text>

Factual context. A plain string in JSX is factual context too; use <Text> for a clear boundary or to load a file.

import { Text } from "curb";

function Text(props: { src?: string; children?: ReactNode }): ReactNode;

Props

PropTypeWhat it does
srcstringA markdown file under context/
childrenReactNodeThe text

Give src or children, never both.

Example

<Text src="deductibles.md" />

Version history

VersionChanges
v0.1.2<Text> introduced