feat: Add comprehensive ControlledTextArea Storybook stories#82
Conversation
- Add BasicUsage story with simple textarea and react-hook-form integration - Add CharacterLimits story with character count validation and display - Add RequiredFieldValidation story with error states and custom messages - Add AutoResizeFunctionality story with dynamic height adjustment - Add ValidationErrorStates story with various error scenarios - Add ComprehensiveExample story showing multiple textareas in a form - Follow established pattern from ControlledInput.stories.tsx - Use react-hook-form directly with FormProvider and useForm - Include proper validation with zod schemas - Demonstrate real-world usage patterns Addresses LC-245: Create ControlledTextArea Storybook Stories
|
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
📝 Storybook Preview: View Storybook This preview will be updated automatically when you push new changes to this PR.
|
a00c074
into
codegen/lc-240-medusa-forms-controlled-components-documentation-stories-and
Overview
This PR implements comprehensive Storybook stories for the
ControlledTextAreacomponent as part of the Medusa Forms controlled components documentation effort.Changes
✅ All 5 Required Story Variants Implemented:
✅ Additional Features:
Implementation Details
ControlledInput.stories.tsxFormProvideranduseForm(NO react-router-stub dependencies)File Created
apps/docs/src/medusa-forms/ControlledTextArea.stories.tsxTesting
The stories can be tested in Storybook by running the docs application and navigating to "Medusa Forms/Controlled Text Area".
Acceptance Criteria ✅
Closes LC-245
💻 View my work • About Codegen