Loading component…
Loading component…
This component has not been implemented locally yet.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import AISearch/PromptExplorer from ./prompt-explorer.
import { PromptExplorerScreen } from "@/components/ui/prompt-explorer";
export default function Page() {
return (
<PromptExplorerScreen
prompts={suggestions}
popular={popular}
rising={rising}
falling={falling}
onAnalyse={(prompts) => api.analyse(prompts)}
onNavigate={(label) => router.push(routes[label])}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| onNavigate | (label: string) => void | Called with the label of a sidebar item | |
| workspace | string | "Northwind" | The workspace in the sidebar – and the brand the analysis counts mentions of |
| title | ReactNode | "Explore what people are prompting ChatGPT" | The heading over the field |
| prompts | { id; text; volume; change; trend? }[] | What the field completes from: each prompt with how many times a month people ask it and how much that changed since last month | |
| popular | { id; text; volume; change; trend? }[] | Popular keywords, on the left | |
| rising / falling | { id; text; volume; change; trend? }[] | Trending keywords, on the right – the switch picks the list; trend is twelve months for the sparkline | |
| onAnalyse | (prompts: string[], mode: "keyword" \| "url") => PexResult[] \| Promise<PexResult[]> | How Analyse answers – one prompt, or one per line with Bulk analysis. A result is { text, volume, change, trend, share }, share being how often answers mention you (0–1). Left out, the screen makes up steady numbers | |
| loading | boolean | Gray rows in place of the keywords – the field still works | |
| empty | boolean | No keyword data yet – both lists say so | |
| className | string | Extra class on the root |
The gradient fades to the page before the keyword card starts, so the lists always sit on a plain background
Popular and Trending sit side by side, and stack on narrower screens; result rows drop the year and the share
Volumes shorten – 549.4k, 1.2M, 1.2B – and long keywords end in … with the whole one on hover
On phones the hero and heading shrink, the field uses 16px text so iOS doesn't zoom, and the sparklines step back
Dark mode built in: the same gradient turned to night – switches when an ancestor has the class dark or data-theme="dark"