Whether the underline is visible. Defaults to
true. Pass false to remove.Adds an underline to text.
.underline(isActive?: boolean): Component
true. Pass false to remove.Text("Underlined text")
.underline()
const body = () => {
const [active, setActive] = useState(false)
return Text("Toggle underline")
.underline(active)
.onTapGesture(() => setActive(!active))
}
Text("Learn more")
.underline()
.foregroundStyle(Color("blue"))