GtkLabel

A widget that displays text.

Preview

TitleThis is body text in a GtkLabel.Text with markup and a linkSelectable textDimmed caption

CSS Node Tree

label[.link]
  └── [link[:link|:visited]] (one per <a> in the markup)

Props

Prop

Type

Style Classes

ClassEffect
.title-1 through .title-4Title sizes
.headingStandard heading style
.caption-heading, .captionSmaller text that accompanies body text
.bodyIncreased line height for wrapping UI text
.documentThe document font, for an app's main content
.monospaceMonospace font
.numericTabular number spacing
.dimmedDimmed text (.dim-label is the deprecated name)
.accentAccent color
.success, .warning, .errorSuccess, warning or error color

GTK4 Documentation →

On this page