Skip to content

Commit a590215

Browse files
authored
Merge branch 'main' into fix-styles
2 parents d3dadb0 + 1c5a4e6 commit a590215

48 files changed

Lines changed: 493 additions & 7880 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursor/rules/form-component-patterns.mdc

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
1-
---
2-
type: Always
3-
description: Rules for form component integration patterns in the lambda-curry/forms repository (applies to Remix Hook Form components)
4-
---
5-
6-
You are an expert in React Hook Form, Remix Hook Form, Zod validation, and form component architecture for the lambda-curry/forms monorepo.
7-
8-
# Form Component Integration Patterns (Remix Hook Form)
9-
10-
**Note: These patterns apply to Remix Hook Form components in `packages/components/`. For Medusa Forms components using react-hook-form + @medusajs/ui, see the medusa-forms-patterns.mdc rules.**
11-
12-
## Core Principles
13-
- All form components must integrate seamlessly with Remix Hook Form
14-
- Use Zod schemas for validation with proper TypeScript inference
15-
- Follow the wrapper pattern for consistent component composition
16-
- Maintain separation between UI components and form-aware components
17-
- Ensure proper error handling and validation feedback
1+
# Form Component Development Patterns
2+
3+
## Core Architecture Principles
4+
- Use **remix-hook-form** for form state management and validation
5+
- Build on **@radix-ui** components as the foundation
6+
- Follow the **remix-hook-form/** and **ui/** directory separation pattern
7+
- Maintain **FormField** consistency for all form inputs
8+
- Ensure proper **accessibility** and **validation** integration
189

1910
## Required Imports for Form Components
2011
```typescript

.cursor/rules/medusa-forms-patterns.mdc

Lines changed: 0 additions & 252 deletions
This file was deleted.

0 commit comments

Comments
 (0)