GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Tiptap Docs
  • UI Components
  • Website
  • Sign up
  • Install
  • Style
  • CLI
  • Changelog
  • Simple Editor
  • Notion EditorPaid
  • DOCX EditorPaid
  • Overview
  • Components
  • Node components

This view

  • Original page
  • New address

GeezerVison is showing tiptap.dev — Blockquote Node | Tiptap UI Components

A styled blockquote node for displaying formatted blockquotes in the editor.

Installation

You can add the node component via Tiptap CLI

npx @tiptap/cli@latest add blockquote-node

Usage

The BlockquoteNode is primarily a styling component that enhances the appearance of blockquotes in the editor. To use it, simply include it in your project and ensure you're using the Blockquote extension from Tiptap.

'use client'

import { useEditor, EditorContent } from '@tiptap/react'
import { StarterKit } from '@tiptap/starter-kit'

import '@/components/tiptap-node/blockquote-node/blockquote-node.scss'

export default function EditorWithBlockquote() {
  const editor = useEditor({
    immediatelyRender: false,
    extensions: [StarterKit],
    content: `
      <h2>Blockquote Example</h2>
      <blockquote>
        This is a blockquote. It can contain <strong>bold text</strong>, <em>italic text</em>.
      </blockquote>
    `,
  })

  return <EditorContent editor={editor} />
}

Styling

The stylesheet draws a vertical bar along the left edge of each quote. It sets the padding around the text and adjusts the bar color in dark mode.

PreviouslyNode components
Next upCode block node
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.