TextDecoration
The object for defining color for text underline or strikethrough.
Declaration
object TextDecorationProperties
| Name | Type | Description |
|---|---|---|
color | Color | Color of the stroke. If you omit this property, Apple News uses the content’s stroke color from the text color for underline or strikethrough. |
Discussion
Use the TextDecoration object to define a stroke for strikethrough or underline.
You can use this object in TextStyle and ComponentTextStyle.
Example
{
"componentTextStyles": {
"exampleStyle": {
…
"strikethrough": {
"color": "#FFC800"
},
"underline": {
"color": "#FFC800"
}
}
}
}