Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Attachment
- Autocomplete
- Avatar
- Badge
- Breadcrumb
- Bubble
- Button
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Checkbox Group
- Collapsible
- Combobox
- Command
- Context Menu
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- Empty
- Field
- Fieldset
- Form
- Frame
- Group
- Input
- Input Group
- Kbd
- Label
- Menu
- Menubar
- Message
- Meter
- Number Field
- OTP Field
- Pagination
- Popover
- Preview Card
- Progress
- Questionnaire
- Radio Group
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Toolbar
- Tooltip
Shared
- Artifact
- Audio Player
- Canvas
- Chain of Thought
- Checkpoint
- Code Block
- Commit
- Connection
- Context
- Controls
- Edge
- Environment Variables
- Mic Selector
- Model Selector
- Node
- Node Toolbar
- Open in Chat
- Panel
- Plan
- Prompt Input
- Queue
- Reasoning
- Sandbox
- Schema Display
- Shimmer
- Snippet
- Sources
- Speech Input
- Stack Trace
- Suggestion
- Tool
- Transcription
- Web Preview
Hooks
Resources
Suggestion
A horizontally scrollable row of suggested prompts.
import { Suggestion, Suggestions } from "@/registry/default/shared/suggestion";
const suggestions = [
"What are the latest trends in AI?",
"How does machine learning work?",
"Explain quantum computing",
"Best practices for React development",
];
export default function Particle() {
return (
<div className="w-full max-w-lg">
<Suggestions>
{suggestions.map((suggestion) => (
<Suggestion key={suggestion} suggestion={suggestion} />
))}
</Suggestions>
</div>
);
}
Installation
pnpm dlx shadcn@latest add @frontal-labs/suggestion
Usage
import { Suggestions, Suggestion } from "@/components/suggestion";API Reference
| Export | Props |
|---|---|
Suggestions | ScrollArea props |
Suggestion | Button props, with some props omitted, plus its own options |
Open the source under Manual above for the exact prop types.
On This Page