🚀 BlockNote AI is here! Access the early preview.
BlockNote Docs/Features/Built-in Blocks/Inline Content

Inline Content

By default, InlineContent (the content of text blocks like paragraphs) in BlockNote can either be a StyledText or a Link object.

Here's an overview of all default inline content and the properties they support:

Styled Text

StyledText is a type of InlineContent used to display pieces of text with styles:

type  = {
  : "text";
  /**
   * The text content.
   */
  : string;
  /**
   * The styles of the text.
   */
  : ;
};

Link objects represent links to a URL:

type  = {
  : "link";
  /**
   * The content of the link.
   */
  : [];
  /**
   * The href of the link.
   */
  : string;
};

Default Styles

The default text formatting options in BlockNote are represented by the Styles in the default schema:

type  = {
  /**
   * Whether the text is bold.
   * @default false
   */
  : boolean;
  /**
   * Whether the text is italic.
   * @default false
   */
  : boolean;
  /**
   * Whether the text is underlined.
   * @default false
   */
  : boolean;
  /**
   * Whether the text is struck through.
   * @default false
   */
  : boolean;
  /**
   * The text color.
   * @default "default"
   */
  : string;
};