We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35037bb commit ee2da91Copy full SHA for ee2da91
Sources/CSS/Declarations/Font.swift
@@ -72,3 +72,15 @@ public enum TextAlignment: String {
72
public func textAlign(_ alignment: TextAlignment) -> Declaration {
73
Declaration(property: .textAlign, value: alignment.rawValue)
74
}
75
+
76
77
+public enum TextDecoration: String {
78
+ case underline
79
+ case overline
80
+ case lineThrough
81
+ case none
82
+}
83
+/// Styling links (`<a>`)
84
+public func textDecoration(_ decoration: TextDecoration) -> Declaration {
85
+ Declaration(property: .textDecoration, value: decoration.rawValue.dashCase())
86
0 commit comments