Tailwind CSS Floating Label - Flowbite
Use the floating label style for the input field elements to replicate the Material UI design system from Google and choose from multiple styles and sizes
The floating label style was first pioneered by Google in its infamous Material UI design system and it’s basically a label tag which floats just above the input field when it is being focused or already has content inside.
On this page you will find a three different input field styles including a standard, outlined, and filled style including validation styles and sizes coded with Tailwind CSS and supported for dark mode.
Floating label example #
Get started with the following three styles for the floating label component and use the label
tag as a visual placeholder using the peer-placeholder-shown
and peer-focus
utility classes from Tailwind CSS.