Elements & Extensions
Every capability in Vyuh Document is a composable element. Start from a built-in configuration, include or remove individual elements and marks, and gate actions with DocumentPolicy and DocumentRules.
dart
import 'package:vyuh_document_flutter/editor.dart';
final config = notesConfiguration
.withoutElements([Columns.element])
.withoutMarks([const Superscript(), const Subscript()])
.withElements([Chart.element])
.withPolicy(
DocumentPolicy.authoring(
rules: [DocumentRules.maxWords(2500)],
),
);Browse by category
Page structure & notes
Document-level geometry, running regions, and reference stories for paginated documents.
| Element | What it configures |
|---|---|
| Pages & sections | Page size, orientation, margins, background color, borders, watermarks, section columns, page/line numbering, breaks |
| Headers | Default, first-page, and even-page header stories, header margin offset, dynamic fields |
| Footers | Default, first-page, and even-page footer stories, page-X-of-Y fields, footer margin offset |
| Footnotes & endnotes | Bottom-of-page footnotes and end-of-document endnotes with live auto-numbering |
Text & inline
The core prose blocks, inline formatting marks, and interactive inline triggers.
| Element | What it configures |
|---|---|
| Paragraphs & marks | Alignment, spacing, line height, indents, tabs, drop caps, borders/shading, and all inline character marks |
| Headings | Semantic levels (h1–h6), outline hierarchy, TOC participation, and per-level action gating |
| Lists | Bullet and ordered lists, marker formats, numbering restarts/continuations, and nested levels |
| Checklists | Interactive tasks, checkbox indicator styles, nesting, and completion toggles |
| Inline fields, mentions & emojis | Live document fields, @mention/#doc/$record smart chips, :emoji: catalog, and bookmarks |
Rich content blocks
Structured container and emphasis blocks for modern technical and editorial authoring.
| Element | What it configures |
|---|---|
| Block quotes | Semantic tones, accent bar color/width, background fill, padding, and nested blocks |
| Callouts | Admonition tones (info, warning, tip, danger, note), editable header title, nested blocks |
| Code blocks | Language syntax highlighting, light/dark presentation, borders, padding, font size, wrapping |
| Toggles | Collapsible disclosure summary, expanded state, nested blocks, automatic expansion in print/DOCX |
| Columns | 2–4 side-by-side content slots, fractional column weights, gutter gap, optional vertical dividers |
| Dividers | Line style (solid/dashed/dotted), thickness, color, indents, and vertical spacing |
Tables, media & data
Structured grids, visual media, floating frames, and native vector charts.
| Element | What it configures |
|---|---|
| Tables | Grid dimensions, column width policies, header rows, banded styles, borders, cell merge/split, floating wrap |
| Charts | 12 vector chart kinds, 12 chart-type options, compound/combo series, typed spreadsheet & async external data |
| Images | Asset resolution, sizing modes, alignment, crop/rotate/flip, captions, links, inline vs. floating wrap |
| Shapes & text boxes | Preset vector shapes, frame styling, text-frame orientation, floating anchors, and text boxes |
References & optional plugins
Generated navigation, academic citations, and opt-in heavy rendering engines.
| Element | What it configures |
|---|---|
| Table of contents | Auto-generated heading index, level depth, page numbers, tab leaders, and per-level styles |
| Citations & bibliography | Citation sources, inline citation clusters, citation styles, and generated bibliography blocks |
| Math equations (KaTeX) | Pure-Dart inline and display LaTeX math with Word OMML round-trip (vyuh_document_katex) |
| Mermaid diagrams | Pure-Dart Mermaid flowcharts, sequence, class, state, ER, and Gantt diagrams (vyuh_document_mermaid) |
| Vector diagrams | Interactive embedded vector canvas (vyuh_document_diagram) |
Starter configurations at a glance
| Configuration | Included elements |
|---|---|
DocumentConfiguration.plainText | Paragraph only (no inline marks) |
paragraphsConfiguration / DocumentConfiguration.richText | Paragraph + all inline marks |
writingConfiguration | Paragraph, Heading, ListItem |
notesConfiguration | writingConfiguration + PageBreak, ColumnBreak, Task, Code, Image, Quote, Callout, Toggle, Columns, Divider, Table |
documentConfiguration | notesConfiguration + Chart, Footnote, Endnote, Shape, TextBox, TableOfContents, Field |
See also Configuration, Extensions, and Elements by configuration.