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

Parameters

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

Support

Usage

Strikethrough text

Text("Crossed out text")
    .strikethrough()

Conditional strikethrough

Text("Maybe crossed out")
    .strikethrough(shouldCrossOut)

Explicitly no strikethrough

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