Skip to content

Interface: PreviewBlock

Properties

body?

optional body?: string;

Free-form body content. Type depends on kind.


fields?

optional fields?: {
  label: string;
  value: string;
}[];

Used by fields blocks. Ordered.

label

label: string;

value

value: string;

kind

kind: PreviewBlockKind;

language?

optional language?: string;

Used by code blocks to choose syntax highlighting.


title

title: string;

Section header shown above the body.