Block quotes
Block quotes highlight excerpts, citations, and editorial pull quotes inside a container block that can hold one or more paragraphs, lists, or nested blocks.
- Included in:
notesConfiguration,documentConfiguration - Pure-Dart import:
package:vyuh_document_elements/block_quote.dartorpackage:vyuh_document_elements/vyuh_document_elements.dart - Flutter extension:
BlockQuoteDocumentExtension(bundled inDocumentEditorElements.defaults) - Action namespace:
QuoteActions
Quick example
dart
import 'package:vyuh_document/vyuh_document.dart';
import 'package:vyuh_document_elements/vyuh_document_elements.dart';
final doc = Document.of(notesConfiguration, [
Quote([
Paragraph('Good typography is invisible; great structure is effortless.'),
]),
]);What you can configure
| Property | Type / Values | Purpose |
|---|---|---|
tone | BlockQuoteTone | Semantic tone preset supplying coordinated accent bar and subtle background tint |
format.accentColor | String? (hex) | Color of the leading vertical accent rule |
format.backgroundColor | String? (hex) | Optional container background fill |
format.leadingBorderWidth | double (points) | Thickness of the left/leading border stroke |
format.horizontalPadding, verticalPadding | double (points) | Inner box insets around quoted blocks |
format.childSpacing | double (points) | Vertical gap between nested blocks inside the quote |
blocks | List<DocumentBlock> | Full editable nested block story |
Actions & commands
| Action ID | Effect |
|---|---|
QuoteActions.insert | Insert a new block quote |
QuoteActions.toggle | Wrap or unwrap the current selection in a block quote |
- Markdown input rule: Typing
>at the start of a paragraph converts it to a block quote. - Properties panel: Exposes tone, accent color, background fill, and border width controls live.
Restricting usage
- Exclude block quotes:
notesConfiguration.withoutElements([Quote.element]) - Keep quotes visual-only (no tone switching): Allow
QuoteActions.togglewhile omitting custom quote styling controls from your inspector.
Format parity
| DOCX | HTML | Markdown | |
|---|---|---|---|
Indented paragraph style with left border & shading (Quote) | Exact accent bar, shading, and padding | <blockquote> | > quoted text |