WIP: Working on friction rate worksheet views.
This commit is contained in:
20
Sources/Styleguide/Label.swift
Normal file
20
Sources/Styleguide/Label.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
import Elementary
|
||||
|
||||
public struct Label: HTML, Sendable {
|
||||
|
||||
let title: String
|
||||
|
||||
public init(_ title: String) {
|
||||
self.title = title
|
||||
}
|
||||
|
||||
public init(_ title: @escaping () -> String) {
|
||||
self.title = title()
|
||||
}
|
||||
|
||||
public var body: some HTML<HTMLTag.span> {
|
||||
span(.class("text-xl text-gray-400 font-bold")) {
|
||||
title
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user