pick-ui-library

Recommends curated frontend libraries for UI tasks like charts, toasts, drag and drop, and state management.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Choosing a frontend library for a common task often means sifting through dozens of near-identical options and risking a poor pick. This Skill provides an opinionated, curated lookup table that maps frontend tasks directly to a single recommended library, removing decision fatigue. ## Core Features & Use Cases - Task-to-library mapping: Covers UI primitives (base-ui), command menus (cmdk), toasts (Sonner), OTP inputs (input-otp), animation (motion, NumberFlow), charts (Liveline, recharts), drag and drop (dnd kit), virtualization (Virtuoso), state (zustand), and styling (clsx, cva, next-themes). - Existing-dependency awareness: Checks package.json first and respects libraries already installed rather than churning dependencies. - Mismatch detection: Flags common anti-patterns, such as hand-rolled toasts, div-based dropdowns without focus handling, or rendering 1,000+ row lists without virtualization. - Use Case: You ask "what should I use for drag and drop?" and get a single recommendation — dnd kit — plus wiring it into your project 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" or "what should I use for a command palette?"

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 sortable lists, kanban boards, and draggable interfaces, and the skill recommends it as the single default rather than presenting alternatives.

What is the best toast notification library for React?

Sonner is the recommended library for toasts and notifications in React. Building toasts by hand or adapting a modal library is a common mismatch this skill flags, since Sonner exists for exactly this purpose.

recharts vs Liveline for charts, which should I pick?

Use Liveline when data points arrive live and the chart scrolls with time, such as streaming dashboards. Use recharts for everything else, including static or interactive general-purpose charts.

Does this skill replace libraries already in my package.json?

No. The skill checks package.json first and uses a listed library if already installed. If a competitor is present, such as react-window instead of Virtuoso, it flags the recommendation but does not change dependencies unless asked.

When should I use clsx versus cva for Tailwind styling?

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

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

The skill says so explicitly and then recommends from general knowledge, making clear it has left the curated list. It does not silently substitute unlisted libraries for covered tasks.