style: add Label to FormElements
This commit is contained in:
1 parent
09c5df8aae
commit
b4084fdb1b
2 files changed
+16
-7
No files matched your search
@@ -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,
|
||||
};
|
||||
Reference in new issue
Block a user