Annotated Text - Writer AI Studio

Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

Shows text with annotations

Overview

The Annotated Text component displays text with visual annotations and highlights. It allows users to see text with embedded annotations that are color-coded to distinguish different types of content or sections. Annotated text is essential for educational content, document review systems, and any interface where text needs visual distinction between different types of content. It provides a way to highlight important terms and sections without cluttering the main display.

Common use cases

How it works

  1. Text content: Displays the main text content with embedded annotations
  2. Annotation markers: Shows visual indicators for annotated sections
  3. Styling: Customize appearance of annotations and text with colors and CSS classes

The component displays text with embedded annotations that are visually highlighted using color coding and styling to distinguish different types of content or sections.

Configuration options

Basic settings

Advanced settings

Styling options

Example

Contract review and analysis

This example shows how to create a contract review interface with highlighted terms and clauses. Interface:

Annotated Text configuration:

Best practices

  1. Clear annotations: Make annotation content concise and informative
  2. Visual indicators: Use clear visual cues to show where annotations exist
  3. Performance: Limit the number of annotations to avoid overwhelming users
  4. Consistent styling: Use consistent annotation styling throughout your interface
  5. Context relevance: Ensure annotations provide relevant and helpful information

Fields

Name Type Description Options
Annotated text Object Value array with text/annotations. Must be a JSON string or a state reference to an array. -
Reference Color The colour to be used as reference for chroma and luminance, and as the starting point for hue rotation. -
Seed value Number Choose a different value to reshuffle colours. -
Rotate hue Boolean If active, rotates the hue depending on the content of the string. If turned off, the reference colour is always used. -
Enable markdown Boolean If active, the output will be sanitized; unsafe elements will be removed. -
Enable copy button Boolean Enable a copy button that lets users to copy the contents in this field to their clipboard -
Button Color - -
Button text Color - -
Primary text Color - -
Custom CSS classes Text CSS classes, separated by spaces. You can define classes in custom stylesheets. -