21 lines
343 B
Swift
21 lines
343 B
Swift
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-lg text-secondary font-bold")) {
|
|
title
|
|
}
|
|
}
|
|
}
|