Shows text with annotations

Fields

NameTypeDescriptionOptions
Annotated textObjectValue array with text/annotations. Must be a JSON string or a state reference to an array.
    ReferenceColorThe colour to be used as reference for chroma and luminance, and as the starting point for hue rotation.
      Seed valueNumberChoose a different value to reshuffle colours.
        Rotate hueTextIf active, rotates the hue depending on the content of the string. If turned off, the reference colour is always used.
        1. yes
        2. no
        Copy buttonsTextIf active, adds a control bar with both copy text and JSON buttons.
        1. yes
        2. no
        ButtonColor
          Button textColor
            Primary textColor
              Custom CSS classesTextCSS classes, separated by spaces. You can define classes in custom stylesheets.

                Low code usage

                This component can be declared directly in Python, using backend-driven UI.

                ui.Annotatedtext(content={
                        "text": {}, # Union[Dict, str] 
                        "referenceColor": "", # str 
                        "seed": 0.0, # Union[float, str] 
                        "rotateHue": "yes", # str [yes, no]
                        "copyButtons": "no", # str [yes, no]
                        "buttonColor": "", # str 
                        "buttonTextColor": "", # str 
                        "primaryTextColor": "", # str 
                        "cssClasses": "", # str 
                    }
                )
                

                Reference