import { html } from "lit";
export interface SearchProps {
size: "Default" | "Big" | "Small";
}
export const Search = ({ size }: SearchProps) => {
// Class based on size
const searchClass =
size === "Big"
? "usa-search usa-search--big"
: size === "Small"
? "usa-search usa-search--small"
: "usa-search";
// Generate unique input ID based on size
const inputId =
size === "Big" ? "search-field-big" : size === "Small" ? "search-field-small" : "search-field";
// Button content - text for Default/Big, icon for Small
const buttonContent =
size === "Small"
? html` `
: html`Search`;
return html`