Content
Heading
A text component used to display headings or titles in different sizes and styles.
Fields
Name | Type | Description | Options |
---|---|---|---|
Text | Text | Add text directly, or reference state elements with @. | |
Heading type | Text |
| |
Alignment | Text |
| |
Primary text | Color | ||
Custom CSS classes | Text | CSS 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.Heading(content={
"text": "", # str
"headingType": "h3", # str [h1, h2, h3, h4]
"alignment": "left", # str [left, center, right]
"primaryTextColor": "", # str
"cssClasses": "", # str
}
)