LN

Project Selector

Cards 13

About

Here is modern project selector component

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

Code

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

Usage.tsx

'use client';

import { useState } from 'react';
import { FolderIcon } from 'lucide-react';
import ProjectSelector, { projects } from '@/components/ui/project-selector';
import type { Project } from '@/components/ui/project-selector';

const ProjectSelectorDemo = () => {
   const [project, setProject] = useState<Project | undefined>(projects[0]);

   const SelectedIcon = project ? project.icon : FolderIcon;

   return (
      <div className="flex w-full flex-col items-center justify-center gap-10 p-4">
         <div className="flex flex-col items-center gap-2 text-center">
            <h2 className="text-lg font-semibold">Project Selector</h2>
            <p className="text-sm text-muted-foreground">Select a project from the dropdown.</p>
         </div>

         <ProjectSelector project={project} onChange={setProject} projectList={projects} />

         <div className="flex w-full max-w-xs flex-col items-center gap-3 rounded-lg border bg-background p-6 shadow-sm">
            <h3 className="text-base font-medium text-muted-foreground">Current Project</h3>
            <div className="flex items-center gap-3 text-lg font-semibold">
               <SelectedIcon className="size-6 text-foreground" />
               <span>{project ? project.name : 'No Project'}</span>
            </div>
         </div>
      </div>
   );
};

export { ProjectSelectorDemo as DemoOne };

Dependencies

More by LN

View all
  • Pricing Interaction

    Pricing Interaction

    1.4K
  • Dorpdown Navigation

    Dorpdown Navigation

    1.2K
  • Visualize Booking

    Visualize Booking

    618
  • Assisted Password Confirmation

    Assisted Password Confirmation

    585
  • Tags Selector

    Tags Selector

    531
  • Mega Menu

    Mega Menu

    386
  • Feedback Slider

    Feedback Slider

    326
  • FlipButton

    FlipButton

    288

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    33
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Statistics Card 2

    Statistics Card 2

    264
  • Statistics Card 10

    Statistics Card 10

    263
  • Card

    Card

    17
  • Card Studio

    Card Studio

    9
  • The Item one

    The Item one

    3