Skip to content

Commit 6fc365f

Browse files
Fix import paths for form components
- Update import examples to use '@lambdacurry/forms' directly instead of '/remix-hook-form/' subpath - Consolidate imports in basic example for cleaner code - Update comprehensive example imports to match correct pattern - Fix important reminders section to reflect correct import path
1 parent ccaabc5 commit 6fc365f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

llms.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ import { z } from 'zod';
2222
import { useFetcher, type ActionFunctionArgs } from 'react-router';
2323

2424
// Import form components
25-
import { TextField } from '@lambdacurry/forms/remix-hook-form/text-field';
26-
import { Checkbox } from '@lambdacurry/forms/remix-hook-form/checkbox';
25+
import { TextField, Checkbox } from '@lambdacurry/forms';
2726
import { Button } from '@lambdacurry/forms/ui/button';
2827
```
2928

@@ -645,7 +644,7 @@ import {
645644
RadioGroup,
646645
DatePicker,
647646
DropdownMenuSelect
648-
} from '@lambdacurry/forms/remix-hook-form';
647+
} from '@lambdacurry/forms';
649648
import { Button } from '@lambdacurry/forms/ui/button';
650649
import { DropdownMenuSelectItem } from '@lambdacurry/forms/ui/dropdown-menu-select-field';
651650
import { RemixFormProvider, useRemixForm, getValidatedFormData, createFormData } from 'remix-hook-form';
@@ -1004,7 +1003,7 @@ This comprehensive example serves as a complete reference for implementing any f
10041003
```
10051004

10061005
### Important Reminders:
1007-
- 🔥 **Always import from `@lambdacurry/forms/remix-hook-form/`** for form-aware components
1006+
- 🔥 **Always import from `@lambdacurry/forms`** for form-aware components
10081007
- 🔥 **Use `createFormData()` for custom submissions** to ensure proper formatting
10091008
- 🔥 **All components are accessible by default** - no additional ARIA setup needed
10101009
- 🔥 **Form context is automatic** - no need to pass `control` props manually

0 commit comments

Comments
 (0)