NexusUI

Suggestions

AI chats 49

About

A row of clickable prompt suggestion chips that let users pick a common query to fill an AI chat input, with optional variants, vertical layout, and an expandable panel of related suggestions.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Suggestions to your project and fits it to your theme.

Code

How Suggestions is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import {
  Suggestions,
  SuggestionList,
  Suggestion,
} from "@/components/ui/suggestions";

export default function SuggestionDefault() {
  return (
    <Suggestions onSelect={(value) => console.log(value)}>
      <SuggestionList className="justify-center max-w-lg">
        <Suggestion>What is AI?</Suggestion>
        <Suggestion>Teach me Engineering from scratch</Suggestion>
        <Suggestion>Design a weekly workout plan</Suggestion>
        <Suggestion>Places to visit in France</Suggestion>
        <Suggestion>How to learn React?</Suggestion>
      </SuggestionList>
    </Suggestions>
  );
}

Dependencies

More by NexusUI

View all
  • Circular Carousel

    Circular Carousel

    1.4K
  • Images Badge

    Images Badge

    1K
  • Chat Messages

    Chat Messages

    381
  • Aquarium Prompt

    Aquarium Prompt

    227
  • Infinite Moving Cards

    Infinite Moving Cards

    202
  • Cinematic Logo Cloud

    Cinematic Logo Cloud

    189
  • Shooting Stars Grid

    Shooting Stars Grid

    163
  • Pixel Atlas

    Pixel Atlas

    133

More in AI chats

View all
  • AI Suggestions

    AI Suggestions

    27
  • AI Actions

    AI Actions

    373
  • AI Chat Composer

    AI Chat Composer

    23
  • Tool Memory

    Tool Memory

    13
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    39
  • Illos Knowledge Sources

    Illos Knowledge Sources

    78
  • Message Parts

    Message Parts

    12
  • Table

    Table

    7