RichTextPropertySpec

Represents a rich text property specification in a Notion database. This property allows users to enter formatted text with various styling options, including bold, italic, code, links, and mentions.

Rich text properties support:

  • Text formatting (bold, italic, strikethrough, code)

  • Links to external websites

  • Mentions of pages, databases, dates, and users

  • Inline equations

The text can be styled using the Notion interface or programmatically through the API. Rich text properties can be used for filtering and sorting database views.

See also

Properties

Link copied to clipboard
abstract val id: String

The ID of the property, usually a short string of random letters and symbols. Some automatically generated property types have special human-readable IDs. For example, all Title properties have an ID of title.

Link copied to clipboard
abstract val name: String

The name of the property as it appears in Notion.