Chat Suggestions
simple-ai/chat-suggestionsFreeComponent
A composable component for displaying chat prompt suggestions as clickable buttons.
Live preview
live · rendered by the registry
Rendered by simple-ai on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://simple-ai.dev/r/chat-suggestions.jsonSource
1"use client";23import type { ComponentProps } from "react";4import { Button } from "@/components/ui/button";5import { cn } from "@/lib/utils";67function ChatSuggestions({ className, ...props }: ComponentProps<"div">) {8 return (9 <div10 className={cn("flex flex-col gap-2.5 px-2 py-2", className)}11 {...props}12 />13 );14}1516function ChatSuggestionsHeader({ className, ...props }: ComponentProps<"div">) {17 return <div className={cn("flex flex-col gap-1", className)} {...props} />;18}1920function ChatSuggestionsTitle({ className, ...props }: ComponentProps<"p">) {21 return (22 <p23 className={cn(24 "text-sm font-medium text-muted-foreground",25 className,26 )}27 {...props}28 />29 );30}3132function ChatSuggestionsDescription({33 className,34 ...props35}: ComponentProps<"p">) {36 return (37 <p38 className={cn("text-xs text-muted-foreground/80", className)}39 {...props}40 />41 );42}4344function ChatSuggestionsContent({45 className,46 ...props47}: ComponentProps<"div">) {48 return <div className={cn("flex flex-wrap gap-2", className)} {...props} />;49}5051function ChatSuggestion({52 className,53 ...props54}: ComponentProps<typeof Button>) {55 return (56 <Button57 variant="outline"58 size="default"59 className={cn(60 "h-auto py-2 px-3 text-sm font-normal whitespace-normal text-left justify-start",61 "hover:bg-accent/50 hover:text-accent-foreground",62 "transition-colors",63 className,64 )}65 {...props}66 />67 );68}6970export {71 ChatSuggestions,72 ChatSuggestionsHeader,73 ChatSuggestionsTitle,74 ChatSuggestionsDescription,75 ChatSuggestionsContent,76 ChatSuggestion,77};
What it pulls in
Other registry items
Files it writes
More from simple-ai
All 77 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| base-handlebase-handle | simple-ai | Components | Free | 1 dep | |
| base-nodebase-node | simple-ai | Components | Free | no deps | |
| Chat Inputchat-input | simple-ai | Components | Free | 7 deps | |
| Chat Messagechat-message | simple-ai | Components | Free | no deps | |
| Chat Message Areachat-message-area | simple-ai | Components | Free | 1 dep | |
| Editable Handleeditable-handle | simple-ai | Components | Free | 1 dep | |
| Generate Text Nodegenerate-text-node | simple-ai | Components | Free | 1 dep | |
| JSON Schema Editorjson-schema-editor | simple-ai | Components | Free | 1 dep |
