feat-WIP: Style updates, new form inputs.
This commit is contained in:
@@ -13,7 +13,7 @@ public struct Label: HTML, Sendable {
|
||||
}
|
||||
|
||||
public var body: some HTML<HTMLTag.span> {
|
||||
span(.class("text-xl text-secondary font-bold")) {
|
||||
span(.class("text-lg text-secondary font-bold")) {
|
||||
title
|
||||
}
|
||||
}
|
||||
|
||||
18
Sources/Styleguide/PageTitle.swift
Normal file
18
Sources/Styleguide/PageTitle.swift
Normal file
@@ -0,0 +1,18 @@
|
||||
import Elementary
|
||||
|
||||
public struct PageTitle: HTML, Sendable {
|
||||
|
||||
let title: String
|
||||
|
||||
public init(_ title: String) {
|
||||
self.title = title
|
||||
}
|
||||
|
||||
public init(_ title: () -> String) {
|
||||
self.title = title()
|
||||
}
|
||||
|
||||
public var body: some HTML<HTMLTag.h1> {
|
||||
h1(.class("text-3xl font-bold")) { title }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user