Vaibhav Kumar Singh

Category List

Features 820

About

An interactive and theme-adaptive list component used to display and navigate through different categories or features. Each item provides visual feedback on hover, revealing more details and an icon, making it ideal for guiding users through key sections of an application.

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

Code

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

Usage.tsx

import React from 'react';
import { CategoryList, Category } from '@/components/ui/category-list';
import { LayoutGrid, Bot, Code, Palette, ArrowRight } from 'lucide-react';

const sampleCategories: Category[] = [
  {
    id: 1,
    title: 'Featured Project',
    subtitle: 'Dive deep into our main showcase.',
    onClick: () => alert('Navigating to Featured Project...'),
    icon: <ArrowRight className="w-8 h-8" />,
    featured: true, // This item will have a larger title
  },
  {
    id: 2,
    title: 'AI & Automation',
    subtitle: 'Explore intelligent systems and workflows.',
    onClick: () => alert('Navigating to AI...'),
    icon: <Bot className="w-8 h-8" />,
  },
  {
    id: 3,
    title: 'UI/UX Design',
    subtitle: 'Discover user-centric design patterns.',
    onClick: () => alert('Navigating to Design...'),
    icon: <Palette className="w-8 h-8" />,
  },
  {
    id: 4,
    title: 'Development Kits',
    subtitle: 'Get started with our pre-built components.',
    onClick: () => alert('Navigating to Dev Kits...'),
    icon: <Code className="w-8 h-8" />,
  },
];


const CategoryListDemo = () => {
  return (
    <div className="w-full min-h-screen bg-background">
      <CategoryList
        title="Explore Our"
        subtitle="Core Features"
        categories={sampleCategories}
        headerIcon={<LayoutGrid className="w-8 h-8" />}
      />
    </div>
  );
};

export default CategoryListDemo;

More by Vaibhav Kumar Singh

View all
  • Stagger Testimonials

    Stagger Testimonials

    2K
  • Event Manager

    Event Manager

    1.6K
  • Expanding Cards

    Expanding Cards

    1.4K
  • FAQ tabs

    FAQ tabs

    1.2K
  • Shuffle Grid

    Shuffle Grid

    1K
  • Flip Links

    Flip Links

    1K
  • Color Change Card

    Color Change Card

    758
  • Dark Gradient Pricing

    Dark Gradient Pricing

    709

More in Features

View all
  • Features 8

    Features 8

    3K
  • Feature Sections

    Feature Sections

    52
  • Grid Feature Cards

    Grid Feature Cards

    1.9K
  • Features Card

    Features Card

    200
  • Feature with image

    Feature with image

    149
  • Feature Modern

    Feature Modern

    20
  • Feature with advantages

    Feature with advantages

    278
  • Features 1

    Features 1

    278