button-interaction-design

Enforces cursor-pointer styling on buttons and interactive UI components.

Updated Jul 21, 2026
One-click install
npx skills add https://github.com/masakinihirota/2026src-ni --skill button-interaction-design-masakinihirota
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: button-interaction-design
Source: https://github.com/masakinihirota/2026src-ni/tree/main/.agents/skills/button-interaction-design
Command: npx skills add https://github.com/masakinihirota/2026src-ni --skill button-interaction-design-masakinihirota

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Interactive elements like buttons and links often lack a pointer cursor on hover, especially when using abstracted component libraries, leaving users unsure whether an element is clickable. ## Core Features & Use Cases - Cursor Enforcement: Requires the cursor-pointer utility class on every button, link, and button-like component such as AlertDialogAction or DialogClose. - Framework Verification: Checks whether shadcn/ui or other base components natively provide pointer cursors before adding explicit classes. - Global Fallback Awareness: Coordinates with the site-wide fallback selector in src/app/globals.css and extends it when new interactive primitives are introduced. - Use Case: When adding a new dialog confirmation button in a React app, apply this rule set to verify the hover cursor and run the interactive-cursor checklist before finishing. ## Quick Start Apply the button interaction rules to review and fix cursor styling on all clickable elements in my component.

Frequently Asked Questions about button-interaction-design

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

FAQPage Schema
How do I add a pointer cursor to buttons in Tailwind CSS?▼

Add the cursor-pointer utility class directly to the element's className. For abstracted components like shadcn/ui Button, verify whether the base component includes it natively, and append cursor-pointer explicitly if it does not.

Why does my button not show a pointer cursor on hover?▼

Abstracted UI components and non-button elements often lack default pointer cursor styling. Browsers only apply pointer cursors natively to links with href attributes, so custom button components need explicit cursor-pointer classes.

Does shadcn/ui Button include cursor-pointer by default?▼

It depends on the version and configuration, so you must verify the base component's styles. If the pointer cursor is not natively provided, explicitly append cursor-pointer to the component's className rather than relying on global fallbacks.

Should disabled buttons show a pointer cursor?▼

No, disabled controls must not show a pointer cursor. The pointer indicates clickability, so showing it on a disabled element misleads users about whether the control is interactive.

Can I rely on a global CSS fallback for cursor styling?▼

A global fallback selector in globals.css can cover common actionable elements, but do not rely on it alone for abstracted button-like components. Add cursor-pointer explicitly or deliberately extend the shared selector for new primitives.