Syed

PocketAssistantCards

Component 19

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
  • Emotion Wheel v2

    Emotion Wheel v2

    182
  • Animated Beam Integration

    Animated Beam Integration

    174
  • Projec tWorkflow Tree

    Projec tWorkflow Tree

    173
  • SpatialCardCarousel

    SpatialCardCarousel

    149
  • Editorial Column Showcase

    Editorial Column Showcase

    116
  • Agency Bento Grid

    Agency Bento Grid

    109
  • Unlimited Design Hero

    Unlimited Design Hero

    106
  • Morphing Island Navbar

    Morphing Island Navbar

    93