Skip to content

feat: Add character count indicators to Input and Textarea components (fixes #34)#69

Open
SamraddhiJoshi wants to merge 1 commit into
sunilkumar2170:mainfrom
SamraddhiJoshi:feat/add-character-count-indicators
Open

feat: Add character count indicators to Input and Textarea components (fixes #34)#69
SamraddhiJoshi wants to merge 1 commit into
sunilkumar2170:mainfrom
SamraddhiJoshi:feat/add-character-count-indicators

Conversation

@SamraddhiJoshi
Copy link
Copy Markdown

Description

This PR resolves issue #34:

  • Extends the InputProps interface to support an optional maxLength prop.
  • Adds character count indicators to both the Input and Textarea components in InputGroup.tsx, updating dynamically as the user types.
  • Restricts character input lengths when maxLength is specified.

Tests and Verification

  • Confirmed that Next.js production build (next build) runs successfully with zero errors.
  • Confirmed that the unit test suite (jest) passes completely.
  • Formatted modified files with prettier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant