Skip to main content
.underline(isActive?: boolean): Component;

Parameters

isActive
boolean
default:"true"
Whether to apply underline styling. Defaults to true if not specified.

Support

Usage

Underlined text

Text("Underlined text")
    .underline()

Conditional underline

Text("Maybe underlined")
    .underline(shouldUnderline)

Explicitly no underline

Text("Normal text")
    .underline(false)