Files
league-of-legends-gui-overhaul/src/components/ui/SearchInput.tsx
ToxicCrzay270 45b96ec20f
All checks were successful
Release Dry Run / release-dry-run (push) Successful in 12s
Codex Template Compliance / template-compliance (push) Successful in 6s
Initialize League GUI prototype
2026-05-15 00:41:38 +02:00

15 lines
429 B
TypeScript

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>
);
}