component-button

Generate fpkit-style React Button components with SCSS and variant data attributes.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/shawn-sandy/agentic-acss-plugins --skill component-button
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: component-button
Source: https://github.com/shawn-sandy/agentic-acss-plugins/tree/main/plugins/acss-kit/skills/component-button
Command: npx skills add https://github.com/shawn-sandy/agentic-acss-plugins --skill component-button

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It solves the problem of manually building accessible, variant-rich UI buttons in React by generating a fully wired Button component (TSX) plus matching SCSS and accessibility behavior.

Core Features & Use Cases

  • Accessible Button generation: Produces an fpkit-style Button that uses aria-disabled (keeps keyboard reachability) and includes focus-visible styling.
  • Variant + token-driven styling: Supports primary/secondary/destructive (danger)/ghost-like (text/outline/icon) variants plus size and color via data attributes and CSS variables.
  • Drop-in component output: Writes button.tsx and button.module.scss into your project and verifies integration afterward.
  • Example use case: When you need a consistent accessible “Save” action plus a “Delete” destructive action in the same design system, this skill generates both buttons with matching theming hooks.

Quick Start

Ask for a button like: "Create a primary submit button with size lg, no loading state, and no icons for my React project."

Frequently Asked Questions about component-button

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

FAQPage Schema
How do I generate an accessible React button component?▼

You generate an accessible React button component by requesting a specific variant like primary or danger, which outputs a TSX file with SCSS styling. It automatically applies aria-disabled attributes and focus-visible states to ensure keyboard reachability and WCAG compliance.

What is the best way to add button variants like danger or outline in React?▼

The best way to add button variants like danger or outline is through data attributes and CSS variables. This approach generates token-driven styling hooks in your SCSS, allowing you to theme primary, secondary, destructive, text, and icon variants without altering the core component logic.

Can I use this tool to scaffold React buttons without adding new dependencies?▼

Yes, you can scaffold React buttons without adding new dependencies because the tool inlines disabled-state logic directly. It verifies your target integration, initializes a missing ui.tsx file, and writes standalone button.tsx and button.module.scss files into your project.

Why does my React button use aria-disabled instead of the standard disabled attribute?▼

Your React button uses aria-disabled instead of the standard disabled attribute to maintain keyboard reachability for screen reader users. This approach keeps the button focusable while visually and functionally presenting a disabled state through inline logic and focus-visible styling.

Does this generator support SCSS theming with CSS variables for different button sizes?▼

Yes, this generator supports SCSS theming with CSS variables for different button sizes. It creates a matching SCSS module that uses data attributes to apply size and color tokens, enabling consistent variant styling across your React design system.