Create Component: $ARGUMENTS
Structure
code
src/components/[ComponentName]/ ├── index.tsx # Main component ├── styles.ts # Tailwind styles (optional) └── [ComponentName].test.tsx # Tests
Template
tsx
// src/components/[ComponentName]/index.tsx
type Props = {
// Define props here
};
export const ComponentName = ({ ...props }: Props) => {
return (
<div className="...">
{/* Component content */}
</div>
);
};
Checklist
- •Create component file with proper TypeScript types
- •Use Tailwind CSS for styling
- •Add test file with basic render test
- •Export from component index