text-decoration-line
Utilities for controlling the decoration of text.
| Class | Effect |
|---|---|
underline |
text-decoration-line: underline; |
overline |
text-decoration-line: overline; |
line-through |
text-decoration-line: line-through; |
no-underline |
text-decoration-line: none; |
Examples
Section titled “Examples”Basic example
Section titled “Basic example”

if ui.div("flex flex-col gap-5") { for c in ([]string{"underline", "overline", "line-through", "no-underline"}) { ui.key(c) specimen(c, ui.cx(c, "text-lg font-medium")) }}Applying on hover
Section titled “Applying on hover”

if ui.p("text-base text-gray-700 dark:text-gray-300") { ui.span("The ") ui.span("quick brown fox", "font-semibold text-sky-600 underline decoration-sky-400/50 underline-offset-4") ui.span(" jumps over the lazy dog.")}