Open this example in the interactive library
Source code
<label
><span class="demo sr-only">Search articles</span
><input type="search" placeholder="Search"
/></label>
Visually hide an accessible label with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<label
><span class="demo sr-only">Search articles</span
><input type="search" placeholder="Search"
/></label>