Skip to content

Heading

A text component used to display headings or titles in different sizes and styles.

Fields

NameTypeDescriptionOptions
TextText
Heading typeText
  • h1 (Big)
  • h2 (Normal)
  • h3 (Small)
  • h4 (Smallest)
AlignmentText
  • Left
  • Center
  • Right
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.

python
ui.Heading(content={
        "text": "", # str 
        "headingType": "h2", # str [h1, h2, h3, h4]
        "alignment": "left", # str [left, center, right]
        "primaryTextColor": "", # str 
        "cssClasses": "", # str 
    }
)

Reference