Arihant jain

Memory Chips

AI chats 8

About

A panel or row of removable chips showing facts an AI assistant remembers, with add/remove interactions.

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

Code

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

Usage.tsx

import { MemoryChips, type MemoryItem } from "@/components/ui/memory-chips";

const memories: MemoryItem[] = [
  { id: "1", fact: "Prefers TypeScript over JavaScript" },
  { id: "2", fact: "Working on a Next.js SaaS dashboard" },
  { id: "3", fact: "Timezone: IST (UTC+5:30)" },
  { id: "4", fact: "Likes concise, direct answers" },
];

export default function MemoryChipsDemo() {
  return (
    <div className="flex w-full items-center justify-center p-8">
      <MemoryChips memories={memories} onAdd={() => {}} onRemove={() => {}} />
    </div>
  );
}

Dependencies

More by Arihant jain

View all
  • Footer section

    Footer section

    1.9K
  • Multistep Form

    Multistep Form

    714
  • Animated Drawer

    Animated Drawer

    695
  • Status Badge

    Status Badge

    522
  • Stacked Circular Footer

    Stacked Circular Footer

    429
  • Input Modal

    Input Modal

    335
  • Large Name Footer

    Large Name Footer

    200
  • Profile Dropdown

    Profile Dropdown

    197

More in AI chats

View all
  • AI Actions

    AI Actions

    326
  • Agent Chat

    Agent Chat

    18
  • Memory Scope

    Memory Scope

    3
  • Attachments

    Attachments

    23
  • Message Thread

    Message Thread

    49
  • Color Picker

    Color Picker

    118
  • Environment Variables

    Environment Variables

    16
  • Chat Bubble

    Chat Bubble

    190

Explore more

Part of Spectrum UI — browse the full library on 21st.dev.