style: add Label to FormElements

This commit is contained in:
robin committed 2026-07-27 16:23:30 +02:00
1 parent 09c5df8aae
commit b4084fdb1b
2 files changed
+16 -7

No files matched your search

+9
View File
@@ -47,9 +47,18 @@ function Button({ children, ...props }: ComponentPropsWithoutRef<"button">) {
)
}
function Label( {children}: ComponentPropsWithoutRef<"label">) {
return (
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">
{children}
</label>
)
}
export const Input = {
Text: Textfield,
Select: Dropdown,
File: File,
Button: Button,
Label: Label,
};