Skip to main content
Glama

mcp-google-sheets

search-input.tsx1.39 kB
import { t } from 'i18next'; import { Search, X } from 'lucide-react'; import * as React from 'react'; import { SelectUtilButton } from '../custom/select-util-button'; export type SearchInputProps = Omit< React.InputHTMLAttributes<HTMLInputElement>, 'onChange' > & { onChange: (value: string) => void; }; const SearchInput = React.forwardRef<HTMLInputElement, SearchInputProps>( ({ type, ...props }, ref) => { return ( <div className="flex-grow flex items-center gap-2 w-full bg-background px-3 focus-within:outline-none first:disabled:cursor-not-allowed first:disabled:opacity-50 box-border"> <Search className="size-4 shrink-0 opacity-50"></Search> <input className="rounded-md bg-transparent h-9 grow text-sm outline-none placeholder:text-muted-foreground" type={type} ref={ref} {...props} onChange={(e) => props.onChange(e.target.value)} data-testid="pieces-search-input" /> {props.value !== '' && ( <SelectUtilButton tooltipText={t('Clear')} onClick={(e) => { e.stopPropagation(); e.preventDefault(); props.onChange(''); }} Icon={X} ></SelectUtilButton> )} </div> ); }, ); SearchInput.displayName = 'SearchInput'; export { SearchInput };

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server