feat: Adds WarningBox to Styleguide

This commit is contained in:
2025-02-28 17:18:09 -05:00
parent 49af734a97
commit 3be0f7a828
7 changed files with 74 additions and 53 deletions

View File

@@ -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
""")
)
}