Skip to content

TextInput component#34

Merged
kohrachel merged 4 commits intomainfrom
textinput
Dec 1, 2025
Merged

TextInput component#34
kohrachel merged 4 commits intomainfrom
textinput

Conversation

@julialaforet
Copy link
Collaborator

@julialaforet julialaforet commented Nov 2, 2025

Creating TextInput component

Creating the TextInput component with two optional attributes, label? and placeholder?

image

Example TextInput component with optional label of "Email" and placeholder of "Enter your email address"

@julialaforet julialaforet linked an issue Nov 2, 2025 that may be closed by this pull request
Copy link
Contributor

@kohrachel kohrachel left a comment

Choose a reason for hiding this comment

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

LGTM! Nice work :)

Usually input props need to store the value of the entered text somewhere (something like this), so I added a prop to accept some React state and its state setter function into the component. Great work!

@kohrachel kohrachel merged commit 047fc47 into main Dec 1, 2025
3 checks passed
@kohrachel kohrachel deleted the textinput branch December 1, 2025 16:28
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.

New Component: TextInput (styled input)

2 participants

Comments