Dropdown

Interactive dropdown components with customizable options, animations, and keyboard navigation support.

Installation

Quick guide to setup the component

1. Copy and paste this into the terminal to install the required dependencies.

Terminal

Copied!

npm i clsx tailwind-merge react-icons

2. Create /lib folder, then create the file utils.ts. Copy and paste this inside of it.

lib/utils.ts

Copied!

1import { ClassValue, clsx } from "clsx";
2import { twMerge } from "tailwind-merge";
3 
4export function cn(...inputs: ClassValue[]) {
5  return twMerge(clsx(inputs));
6}

Account Dropdown

Interactive account dropdown with profile avatar, share button, and menu items including PRO badge

Minimal Dropdown

Minimal Shadcn-style dropdown with sections, keyboard shortcuts, and upward opening

Container Dropdown

Container dropdown with three-dot trigger and action menu

Accent Dropdown

Accent Dropdown with accent color for selection

More Components Coming Soon

We're constantly adding new components to help you build faster.

More coming soon! 🚀

Have a specific component in mind? I'd love to build it for you.

Request a component →
DPS TemplateDPS Template

Component Development

Need custom React components for your project? Get in touch

I've built hundreds of components, and helped developers and teams create beautiful, reusable UI components.

  • Custom React components withTypeScript support

  • Beautiful styling withTailwind CSS

  • Fully tested and documented components ready to use

Perfect for development teams, agencies, or anyone needing custom UI components.


Ready to enhance your component library?

Reach out to me →
DPS TemplateDPS Template
DP's Templates

Access an ever-growing collection of premium, meticulously crafted templates and component packs for modern web and mobile development. Built by Emanuele Di Pietro.