feat: Adds styleguide, working on result view container.
This commit is contained in:
19
Sources/Styleguide/Buttons.swift
Normal file
19
Sources/Styleguide/Buttons.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
import Elementary
|
||||
|
||||
public struct SubmitButton: HTML, Sendable {
|
||||
let label: String
|
||||
|
||||
public init(label: String) {
|
||||
self.label = label
|
||||
}
|
||||
|
||||
public var content: some HTML<HTMLTag.button> {
|
||||
button(
|
||||
.type(.submit),
|
||||
.class("""
|
||||
w-full \(bg: .blue) \(text: .yellow) font-bold py-3 rounded-md
|
||||
hover:\(bg: .darkBlue) transition-colors
|
||||
""")
|
||||
) { label }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user