summaryrefslogtreecommitdiff
path: root/Jel/Views/Dashboard/DashboardSectionTitleView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Jel/Views/Dashboard/DashboardSectionTitleView.swift')
-rw-r--r--Jel/Views/Dashboard/DashboardSectionTitleView.swift30
1 files changed, 30 insertions, 0 deletions
diff --git a/Jel/Views/Dashboard/DashboardSectionTitleView.swift b/Jel/Views/Dashboard/DashboardSectionTitleView.swift
new file mode 100644
index 0000000..2456dc2
--- /dev/null
+++ b/Jel/Views/Dashboard/DashboardSectionTitleView.swift
@@ -0,0 +1,30 @@
+//
+// DashboardSectionTitleView.swift
+// Jel
+//
+// Created by zerocool on 12/27/23.
+//
+
+import SwiftUI
+
+struct DashboardSectionTitleView: View {
+ @State var titleText: String
+
+ init(_ title: String) {
+ self.titleText = title
+ }
+
+ var body: some View {
+ HStack {
+ Text(titleText)
+ .font(.title2)
+ .bold()
+ Spacer()
+ }
+ .padding(.top)
+ }
+}
+
+#Preview {
+ DashboardSectionTitleView("Title")
+}