Skip to content
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

feat(component): default to type="text" on <TextInput> #1206

Merged
merged 1 commit into from
Jan 1, 2024

Conversation

tulup-conner
Copy link
Collaborator

All of the other form components provide an implicit type=".." field so this one should, too. It is implied by the name that this will be an <input type="text"> by default, and you have the option to provide a specific other type.

Make <TextInput>s slightly more convenient when the type="text", since "Text input" implies that.

No breaking changes! type="text" typed explicitly will still work, but won't be necessary anymore. Explicit type="search", etc. will work the same.

All of the other form components provide an implicit `type=".."` field so this one should, too. It
is implied by the name that this will be an `<input type="text">` by default, and you have the
*option* to provide a specific other `type`.
@tulup-conner tulup-conner added the 🚀 enhancement New feature or request label Dec 31, 2023
@tulup-conner tulup-conner added this to the 1.0.0 milestone Dec 31, 2023
Copy link

vercel bot commented Dec 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
flowbite-react ✅ Ready (Inspect) Visit Preview Dec 31, 2023 11:40pm

@tulup-conner tulup-conner merged commit fbd57c8 into main Jan 1, 2024
3 checks passed
@tulup-conner tulup-conner deleted the feat/default-textinput-type branch January 1, 2024 09:05
ddiasfront pushed a commit to ddiasfront/flowbite-react that referenced this pull request Jan 1, 2024
…g#1206)

All of the other form components provide an implicit `type=".."` field so this one should, too. It
is implied by the name that this will be an `<input type="text">` by default, and you have the
*option* to provide a specific other `type`.
@tulup-conner tulup-conner mentioned this pull request Jan 1, 2024
2 tasks
@github-actions github-actions bot mentioned this pull request Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants