RetroSuggestedPrompts
A row of Mac OS 9 bevel buttons offering starter prompts for an AI chat.
Installation
npx shadcn@latest add "https://nostalgia-ui.com/r/retro-suggested-prompts.json"
Setup: installing any component also installs nostalgia-theme (the --os9-* tokens and os9-* utilities) via registryDependencies. To add the theme on its own: npx shadcn@latest add https://nostalgia-ui.com/r/nostalgia-theme.json. Put @layer ui-sdk; above @import "tailwindcss" in your global CSS (why).
Import
import { RetroSuggestedPrompts } from "@/components/ui/retro-suggested-prompts"Usage
<RetroSuggestedPrompts
suggestions={[
"Tidy my desktop",
{ label: "Write a Read Me", prompt: "Write a Read Me for my HyperCard stack", icon: <DocIcon /> },
]}
onSelect={(prompt) => setDraft(prompt)}
/>Basic
Chose:
nothing yetThe buttons arrive one after another, 30ms apart. Classic flair and reduced motion show them at once.
With Icons, Filling a Composer
Give a suggestion a prompt when the text it sends is longer than its label.