feat: Adds text labeled content and style.
This commit is contained in:
@@ -49,6 +49,15 @@ extension TextLabeledContent where Label == Text {
|
||||
}
|
||||
|
||||
#Preview {
|
||||
TextLabeledContent("Label") { Text("Content") }
|
||||
VStack {
|
||||
TextLabeledContent("Label") { Text("Content") }
|
||||
.textLabelStyle(.boldSecondary)
|
||||
|
||||
Grid {
|
||||
TextLabeledContent("One") { Text("One-Content") }
|
||||
TextLabeledContent("Two") { Text("Two-Content") }
|
||||
}
|
||||
.textLabelStyle(.boldSecondary)
|
||||
.labeledContentStyle(.gridRow)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user