Syed

PocketAssistantCards

Component

About

A tactile 3-column stitched pocket card showcase with tilted AI assistant notes that smoothly peek on hover and pull out on click for full readability.

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

Code

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

Usage.tsx

"use client";

import React from "react";
import {
  PocketAssistantCards,
  type PocketTheme,
} from "@/components/ui/pocket-assistant-cards";

const settings = {
  headline: "I'm always in your pocket",
  subheadline: "Wherever you are",
  interactive: true,
  autoPeek: false,
  soundEnabled: false,
  theme: "auto",
};

const VALID_THEMES: PocketTheme[] = ["auto", "light", "dark"];

export default function PocketAssistantCardsDemo(
  props: Partial<typeof settings>
) {
  const config = { ...settings, ...props };

  const theme: PocketTheme = VALID_THEMES.includes(config.theme as PocketTheme)
    ? (config.theme as PocketTheme)
    : "auto";

  return (
    <div className="flex w-full items-center justify-center p-4 sm:p-8">
      <PocketAssistantCards
        headline={
          typeof config.headline === "string"
            ? config.headline
            : settings.headline
        }
        subheadline={
          typeof config.subheadline === "string"
            ? config.subheadline
            : settings.subheadline
        }
        interactive={Boolean(config.interactive)}
        autoPeek={Boolean(config.autoPeek)}
        soundEnabled={Boolean(config.soundEnabled)}
        theme={theme}
      />
    </div>
  );
}

export {
  PocketAssistantCardsDemo as Demo,
  PocketAssistantCardsDemo as demo,
};

Dependencies

More by Syed

View all
  • Animated Beam Integration

    Animated Beam Integration

    159
  • Emotion Wheel v2

    Emotion Wheel v2

    156
  • Projec tWorkflow Tree

    Projec tWorkflow Tree

    135
  • SpatialCardCarousel

    SpatialCardCarousel

    134
  • Agency Bento Grid

    Agency Bento Grid

    100
  • Unlimited Design Hero

    Unlimited Design Hero

    97
  • Morphing Island Navbar

    Morphing Island Navbar

    92
  • Fitness Bento Grid

    Fitness Bento Grid

    80