# Create React Component

> Create a new React component in packages/components following established conventions Use when this capability is needed.

- Skill: `tomevault-io/create-react-component` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/create-react-component`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/create-react-component/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/create-react-component

---


Create a new React component in the `packages/components` package following the established conventions.

## Component: $ARGUMENTS

Create a folder `packages/components/src/$ARGUMENTS/` with the following files:

### 1. `index.tsx` — Component implementation
Use the template from [templates/component.tsx](templates/component.tsx):
- Replace `{{ComponentName}}` with `$ARGUMENTS`
- Replace `{{component-name}}` with the kebab-case version

### 2. `index.test.tsx` — Jest unit tests
Use the template from [templates/component.test.tsx](templates/component.test.tsx):
- Replace `{{ComponentName}}` with `$ARGUMENTS`

### 3. `index.stories.tsx` — Storybook story
Use the template from [templates/component.stories.tsx](templates/component.stories.tsx):
- Replace `{{ComponentName}}` with `$ARGUMENTS`

### 4. `index.scss` — Component styles
Use the template from [templates/component.scss](templates/component.scss):
- Replace `{{component-name}}` with the kebab-case version of `$ARGUMENTS`

### 5. Update barrel export
Add a named export to `packages/components/index.ts`:
```ts
export {default as $ARGUMENTS} from './src/$ARGUMENTS';
```

After creating all files, run `yarn test` and `yarn lint` from `packages/components/` to verify everything works.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/mbarzeev) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

