new-component

Scaffold typed React components with props interfaces, Tailwind styling, and shadcn/ui primitives.

13|5|Updated May 18, 2024
One-click install
npx skills add https://github.com/techdiary-dev/techdiary.dev --skill new-component-techdiary-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-component
Source: https://github.com/techdiary-dev/techdiary.dev/tree/main/.claude/skills/new-component
Command: npx skills add https://github.com/techdiary-dev/techdiary.dev --skill new-component-techdiary-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffold a typed React component with a props interface, Tailwind styling, and shadcn/ui primitives.

Core Features & Use Cases

  • Scaffolds server or client components with enforced Props interfaces.
  • Applies Tailwind styling and shadcn/ui primitives consistently.
  • Guides component naming, placement, and file structure for reuse across the codebase.

Quick Start

Ask for the component name, where it lives, and whether it's a server or client component.

Frequently Asked Questions about new-component

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

FAQPage Schema
How do I scaffold a typed React component with Tailwind and shadcn/ui?

To scaffold a typed React component, this tool generates a template with a props interface, Tailwind styling, and shadcn/ui primitives. It enforces TypeScript typings and React.FC<Props> to ensure consistent component structure across your project.

What is the best way to create a server or client React component with enforced props?

Creating server or client React components with enforced props is handled by generating template-driven file structures. The tool guides component naming, placement, and file structure, applying project-wide conventions for immediate reuse.

Can I use this to generate React components with TypeScript interfaces?

Yes, you can use this to generate React components with TypeScript interfaces. It scaffolds typed components using React.FC<Props> and enforces props interfaces, ensuring type safety for both server and client components.

Does the scaffolded React component template include shadcn/ui primitives?

Yes, the scaffolded React component template includes shadcn/ui primitives. It consistently applies Tailwind styling alongside these UI primitives, ensuring the generated component integrates seamlessly with your existing design system.

How do I start generating a new React component file structure?

To start generating a React component file structure, provide the component name, its directory location, and whether it is a server or client component. The tool then scaffolds the typed file with enforced conventions automatically.

Why use a template-driven scaffold for React UI primitives instead of manual setup?

Using a template-driven scaffold for React UI primitives enforces TypeScript typings and project-wide file structure conventions. This ensures consistent component naming, placement, and styling with Tailwind, reducing manual configuration errors.