We're live on Product Hunt today

Google Search

Pro

A Google AI Mode search bar with a rainbow that travels the rim, cycling typewriter prompts, and an inline Google wordmark.

searchglowgoogleaitypewriterinput
Google Search component preview

Props

PropTypeDefaultDescription
suggestionsreadonly string[]Four Google-style idle promptsCycling typewriter prompts shown while the field is idle.
valuestring-Controlled query.
defaultValuestring""Uncontrolled initial query.
onChange(value: string) => void-Fires on every text change.
onSubmit(value: string) => void-Fires when the form submits.
hideWordmarkbooleanfalseHide the inline Google wordmark.
wordmarkTone"mono" | "color""mono"Mono follows the theme, near-black on light and white on dark. Color uses the official letter fills.
aiModeLabelstring"AI Mode"Label inside the trailing pill.
onAiMode() => void-Fires when the AI Mode pill is pressed.
onVoice() => void-Fires when the microphone button is pressed.
onLens() => void-Fires when the Lens button is pressed.
glowbooleantrueDraw the travelling rainbow rim.
labelstring"Google Search"Accessible name for the search region.