themesberg / flowbite-react

Official React components built for Flowbite and Tailwind CSS
https://flowbite-react.com
MIT License
1.82k stars 406 forks source link

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

Closed tulup-conner closed 7 months ago

tulup-conner commented 7 months ago

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.

vercel[bot] commented 7 months ago

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