import { DaffTextSchema } from '@daffodil/content'
Represents a text node in the content schema.
interface DaffTextSchema {
type: "textSchema"
text: string
}
type "textSchema" |
|---|
Discriminator for text schema nodes. |
text string |
|---|
The text content to render. |
const textNode: DaffTextSchema = {
type: 'textSchema',
text: 'Hello, world!'
};
const textNode: DaffTextSchema = {
type: 'textSchema',
text: 'Hello, world!'
};