create-component

Scaffold CVA-based UI components with DaisyUI under app/components categories.

4|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/tech-with-seth/iridium --skill create-component-tech-with-seth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-component
Source: https://github.com/tech-with-seth/iridium/tree/main/.github/skills/create-component
Command: npx skills add https://github.com/tech-with-seth/iridium --skill create-component-tech-with-seth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers quickly implement reusable UI components that follow Iridium patterns (CVA-based components with DaisyUI) to reduce boilerplate and ensure UI consistency.

Core Features & Use Cases

  • Scaffold CVA-based components that align with Iridium design conventions (buttons, inputs, cards, modals, alerts).
  • Enforce proper imports from the CVA config and correct usage of cx for className composition.
  • Provide templates and documentation to streamline component creation across app/components.

Quick Start

Design and implement a new Button using CVA variants and DaisyUI, placing it in app/components/actions/ and exporting it for reuse.

Frequently Asked Questions about create-component

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

FAQPage Schema
How do I create reusable UI components with CVA and DaisyUI?

To create reusable UI components with CVA and DaisyUI, you scaffold elements like buttons, inputs, and alerts using CVA variants, ensuring proper imports from the CVA config and className handling with cx() for consistency across your app/components directory.

What is the best way to structure frontend component patterns for consistency?

Structuring frontend component patterns involves placing CVA-based components under specific app/components categories, such as actions for buttons. This enforces Iridium design conventions, reduces boilerplate, and maintains UI consistency across the application.

Can I use this CVA component scaffolding for modals and alerts?

Yes, you can use this CVA component scaffolding for modals and alerts. It provides templates and integration notes for building reusable UI elements, ensuring they follow Iridium patterns and maintain proper className composition with cx().

Do I need to import from the CVA config when building DaisyUI components?

Yes, you need to import from the CVA config when building DaisyUI components. The skill enforces proper imports from the CVA config to standardize variant definitions and ensure correct className handling using the cx() utility.

How does className composition work with CVA variants in frontend UI patterns?

ClassName composition with CVA variants works by using the cx() utility to merge classes. This approach ensures that reusable DaisyUI components handle conditional styling and variant overrides correctly without conflicts, following Iridium design conventions.

Are there limitations to scaffolding CVA-based components for frontend UI?

Scaffolding CVA-based components for frontend UI is limited to predefined elements like buttons, inputs, cards, modals, and alerts. It focuses strictly on Iridium patterns and DaisyUI integration, meaning custom non-CVA design systems are not supported by these templates.