pick-ui-library

Recommends curated React libraries for frontend tasks like charts, toasts, and drag and drop.

Updated Jul 16, 2026
One-click install
npx skills add https://github.com/optimaxin/Tredev_Gems --skill pick-ui-library-optimaxin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pick-ui-library
Source: https://github.com/optimaxin/Tredev_Gems/tree/main/.agents/skills/pick-ui-library
Command: npx skills add https://github.com/optimaxin/Tredev_Gems --skill pick-ui-library-optimaxin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Choosing the right frontend library for a task is time-consuming and error-prone, with countless overlapping options for toasts, charts, drag and drop, state management, and more. This Skill provides a curated, opinionated lookup table that maps common frontend tasks to a single vetted library recommendation. ## Core Features & Use Cases - Task-to-library matching: Maps tasks like command menus, OTP inputs, virtualization, animation, and theme switching to specific libraries such as cmdk, input-otp, Virtuoso, motion, and next-themes. - Existing dependency awareness: Checks package.json first and respects libraries already installed, flagging competitors without churning dependencies. - Mismatch detection: Catches common anti-patterns like hand-built toasts, div-based dropdowns, and template-literal className ternaries, redirecting to the right tool. - Use Case: You ask "what should I use for drag and drop?" and get a single recommendation (dnd kit) with a one-sentence rationale, plus installation if requested. ## Quick Start Ask the skill which library to use for a specific frontend task, such as "I need toasts in my React app."

Frequently Asked Questions about pick-ui-library

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What library should I use for drag and drop in React?

Use dnd kit for drag and drop in React. It is the curated pick for this task, covering sortable lists, droppable zones, and complex drag interactions without needing alternatives.

How do I choose between clsx and cva for Tailwind styling?

Use clsx for ad-hoc conditional className strings and cva when a component has real variants like size, intent, or state that deserve a typed API. They compose together since cva accepts clsx-style inputs internally.

What is the best library for toast notifications in React?

Sonner is the recommended library for toasts and notifications. Building toasts by hand or with a modal library is a common mismatch that Sonner solves directly.

Should I use Virtuoso or react-window for list virtualization?

Virtuoso is the curated pick for virtualizing long lists and large tables. If your project already uses react-window, the recommendation is flagged but the dependency is not swapped unless you ask.

When should I use motion versus plain CSS transitions?

Use motion (Framer Motion) when you need springs, layout animations, exit animations, or gesture-driven values. A simple hover or fade only needs plain CSS transitions, not an animation library.

What happens if my task is not covered by the curated list?

The skill explicitly says the task is not covered and then recommends from general knowledge, clearly stating it has left the curated list rather than silently substituting an unvetted option.