Alok Srivastava

Expandable Book Search Palette

Component

About

A search bar that expands into a filterable genre grid using a CSS grid-rows accordion animation, useful for a book catalog or library browse page.

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

Code

How Expandable Book Search Palette is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import BookSearchPalette from "@/components/ui/expandable-book-search-palette";

export default function Demo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center">
      <BookSearchPalette />
    </div>
  );
}

More by Alok Srivastava

View all
  • Glossy Slider Call Button

    Glossy Slider Call Button

    1
  • Dot Graph Card

    Dot Graph Card