affectUI › Screens › App screens

AI Search / Prompt Explorer

What people ask AI assistants – type a prompt on a soft gradient hero and see related searches with their volume, analyse them, and browse popular and trending keywords.

Part of affectUI Pro. Install: npx shadcn@latest add https://www.affectui.com/r/prompt-explorer.json · Import from @/components/ui/prompt-explorer

When to use

  • AI search and answer-engine tools – what people ask ChatGPT and other assistants, how often, and whether it grows
  • Keyword or prompt research with a search-first start: type, see completions with their volume, analyse
  • A product's home that leads with one field on a calm gradient, with lists of what's popular under it

When not to use

  • A chat with the assistant itself – use Assistant Home or AI Chat
  • Charts of numbers over time – use Analytics or Trend Chart

Usage

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

Props

NameTypeDefaultDescription
onNavigate(label: string) => voidCalled with the label of a sidebar item
workspacestring"Northwind"The workspace in the sidebar – and the brand the analysis counts mentions of
titleReactNode"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
loadingbooleanGray rows in place of the keywords – the field still works
emptybooleanNo keyword data yet – both lists say so
classNamestringExtra class on the root

Keyboard

  • ↓ / ↑: In the field: through the relevant searches
  • Enter: Pick the highlighted search, or analyse what you typed – with Bulk analysis Enter starts a new line
  • ⌘ / Enter: Analyse every line in Bulk analysis
  • Esc: Close the relevant searches
  • ← / →: Between Prompts and Page, and between Rising and Falling

Accessibility

  • The field is a combobox with its searches as a listbox – the highlighted one is read out as you move
  • Each keyword is a button named with its volume and change; the switches are radio groups and Bulk analysis a switch
  • Rings show for the keyboard only – never on the field, whose card just gets a firmer edge

Responsive

  • 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"

Requirements

  • React 19
  • @hugeicons/react
  • @hugeicons/core-free-icons
  • App Shell (installed with it)

Related

  • AI Chat / Start – AI assistant start page: greeting, prompt box with tools, connected apps and suggestions
  • Analytics – Revenue dashboard: key figures, revenue by channel, breakdown, top products and weekly trends
  • Trend Chart – The chart on its own for any card or layout – line, area, bars or a sparkline from the same data, with a tooltip, this period against the last, and charts that follow the same day together
  • Model Usage – How much each AI company's models were used – one stacked bar per company in its color with a segment per model, the most used darkest and the rest lighter shades; point at a bar for its models and their share. The period's total and change on top with tokens, cost and requests to switch between, and below what it all went into – search, analyze, code, test – across every model, or just the company you point at