titles
This component displays a title, subtitle, comment, or any type of text content. As the titles component is always part of a widget, this text will be displayed on the widget.
Titles are available in the following content widgets:
Configuration options
Core structure
title
Display the text content for the title.
subtitle
Add a subtitle under the title text.
Other options
align
center, left, right
icon
icon used in the widget.
iconColor
Sets the icon's color. Choose a color from the provided palette. If the property is not specified in the YAML, the default color is black.
style
Properties used for component styling.
Examples and code snippets
Titles in the image widget

widgets:
image-title:
type: widget.image
options:
isContentOverlaid: true
source:
uri: [email protected]
bottom:
type: component.titles
options:
align: center
title: [email protected]widgets:
image-title-dd:
type: widget.image
options:
isContentOverlaid: true
source:
uri: [email protected]
bottom:
type: component.titles
options:
align: center
title: [email protected]type: datasource.static
options:
data:
- address: Národní 135/14, 110 00 Praha
image: https://images.unsplash.com/photo-1472289065668-ce650ac443d2?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1738&q=80
locationSubtitle: Prague Czech Republic
locationTitle: Co-working space
title: Work productivitytype: datasource.sqlite
options:
provider: DATA_PROVIDER_DYNAMIC
entities:
- entity: default/location
query: |
SELECT
'$.id',
'$.title',
'$.image',
'$.address',
'$.locationtitle',
'$.locationsubtitle',
'$.category'
FROM [default/location]
WHERE '$.category' = "titles"# Grid-item for the static jig.
children:
- type: component.grid-item
options:
size: "4x4"
children:
type: component.jig-widget
options:
jigId: titles-widget-image
widgetId: image-titleTitles in the location widget

widgets:
location-title-s:
type: widget.location
options:
viewPoint:
address: [email protected]
bottom:
type: component.titles
options:
title: [email protected]
subtitle: [email protected]
align: leftwidgets:
location-titles-dd:
type: widget.location
options:
viewPoint:
address: [email protected]
bottom:
type: component.titles
options:
title: [email protected]
subtitle: [email protected]# Grid-item for the static jig.
children:
- type: component.grid-item
options:
size: "2x2"
children:
type: component.jig-widget
options:
jigId: titles-widget-image
widgetId: image-titleLast updated
Was this helpful?