Hiyve Components - v1.0.0
    Preparing search index...

    TipTap/ProseMirror JSON content type.

    This is the native format for TipTap documents. It represents hierarchical content with nodes, marks, and attributes.

    const content: JSONContent = {
    type: 'doc',
    content: [
    {
    type: 'paragraph',
    content: [
    { type: 'text', text: 'Hello ' },
    { type: 'text', text: 'world', marks: [{ type: 'bold' }] },
    ],
    },
    ],
    };
    type JSONContent = {
        attrs?: Record<string, unknown>;
        content?: JSONContent[];
        marks?: { attrs?: Record<string, unknown>; type: string }[];
        text?: string;
        type?: string;
    }
    Index

    Properties

    attrs?: Record<string, unknown>

    Node attributes

    content?: JSONContent[]

    Child nodes

    marks?: { attrs?: Record<string, unknown>; type: string }[]

    Text marks (bold, italic, etc.)

    text?: string

    Text content (for text nodes)

    type?: string

    Node type (e.g., 'doc', 'paragraph', 'heading', 'table')