GitHub

DaffTextSchema

interface

import { DaffTextSchema } from '@daffodil/content'

Represents a text node in the content schema.

interface DaffTextSchema {
  type: "textSchema"
  text: string
}

Properties

type
"textSchema"

Discriminator for text schema nodes.

text
string

The text content to render.

Examples

const textNode: DaffTextSchema = {
  type: 'textSchema',
  text: 'Hello, world!'
};

const textNode: DaffTextSchema = {
  type: 'textSchema',
  text: 'Hello, world!'
};