vue-sample-sample-doc-italic

PreviousNext
Docs
prosekitcomponent

Preview

Loading preview…
registry/src/vue/sample/sample-doc-italic.ts
import type { NodeJSON } from 'prosekit/core'

export const sampleContent: NodeJSON = {
  type: 'doc',
  content: [
    {
      type: 'paragraph',
      content: [
        {
          type: 'text',
          marks: [
            {
              type: 'italic',
            },
          ],
          text: 'This is italic',
        },
      ],
    },
    {
      type: 'paragraph',
      content: [
        {
          type: 'text',
          marks: [
            {
              type: 'italic',
            },
          ],
          text: 'This is italic too',
        },
      ],
    },
    {
      type: 'paragraph',
      content: [
        {
          type: 'text',
          text: 'This is normal text',
        },
      ],
    },
  ],
}

Installation

npx shadcn@latest add @prosekit/vue-sample-sample-doc-italic

Usage

import { VueSampleSampleDocItalic } from "@/components/vue-sample-sample-doc-italic"
<VueSampleSampleDocItalic />