feat: Adds reset button to result container view.
This commit is contained in:
@@ -19,3 +19,23 @@ public struct SubmitButton: HTML, Sendable {
|
||||
) { label }
|
||||
}
|
||||
}
|
||||
|
||||
public struct ResetButton: HTML, Sendable {
|
||||
|
||||
let label: String
|
||||
|
||||
public init(label: String = "Reset") {
|
||||
self.label = label
|
||||
}
|
||||
|
||||
public var content: some HTML<HTMLTag.button> {
|
||||
button(.class("""
|
||||
font-bold px-4 py-2 rounded-md transition-colors
|
||||
bg-blue-500 dark:bg-yellow-300
|
||||
hover:bg-blue-600 hover:dark:bg-yellow-400
|
||||
text-yellow-300 dark:text-blue-500
|
||||
""")) {
|
||||
label
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user