Skip to content

feat(react): add Input component with light theme and states #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 3, 2025

Conversation

Gannu456
Copy link
Contributor

@Gannu456 Gannu456 commented Jul 2, 2025

Feature: Input Component

Summary

This PR introduces a new Input component with support for:

  • Light and dark themes
  • Variants: default, hover, pressed, inactive, and error
  • Optional icon support
  • Error message handling

Screenshots

Screenshot 2025-07-02 at 6 56 39 PM

Changes

  • input.component.tsx: Main implementation
  • input.const.ts: Tailwind style mapping per state
  • input.types.ts: Type definitions
  • index.ts: Public exports
  • App.tsx: Showcase integration for live demo

Verification

  • Component follows Figma design
  • Works in both light theme
  • Fully typed with TypeScript
  • Responsive and accessible
  • Passed pnpm run lint, check:tsc, and build

Related

@Gannu456 Gannu456 marked this pull request as ready for review July 2, 2025 13:29
@Brayan-724 Brayan-724 linked an issue Jul 2, 2025 that may be closed by this pull request
@Brayan-724 Brayan-724 added React Related to React.js New Component labels Jul 2, 2025
@Brayan-724 Brayan-724 self-requested a review July 2, 2025 21:38
Copy link
Member

@Brayan-724 Brayan-724 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved but I need to make some changes to migrate styles, wait for merge

@Brayan-724 Brayan-724 merged commit fd15e87 into RustLangES:main Jul 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Component React Related to React.js
Projects
None yet
Development

Successfully merging this pull request may close these issues.

React - Input
2 participants