Initialize League GUI prototype
This commit is contained in:
14
src/components/ui/SearchInput.tsx
Normal file
14
src/components/ui/SearchInput.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { InputHTMLAttributes } from "react";
|
||||
|
||||
type SearchInputProps = InputHTMLAttributes<HTMLInputElement> & {
|
||||
label?: string;
|
||||
};
|
||||
|
||||
export function SearchInput({ label = "Search", className = "", ...props }: SearchInputProps) {
|
||||
return (
|
||||
<label className={["ui-field", className].filter(Boolean).join(" ")}>
|
||||
<span>{label}</span>
|
||||
<input className="ui-input" type="search" {...props} />
|
||||
</label>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user