feat: Adds WarningBox to Styleguide
This commit is contained in:
@@ -50,8 +50,10 @@ public struct Input: HTML, Sendable {
|
||||
input(
|
||||
.id(id), .placeholder(placeholder), .name(name ?? id),
|
||||
.class("""
|
||||
w-full px-4 py-2 border border-gray-300 dark:border-gray-400 rounded-md
|
||||
w-full px-4 py-2 border rounded-md
|
||||
focus:ring-2 focus:ring-yellow-800 focus:border-yellow-800
|
||||
placeholder-shown:border-gray-300 placeholder-shown:dark:border-gray-400
|
||||
invalid:border-red-500 out-of-range:border-red-500
|
||||
""")
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user