Open this example in the interactive library
Source code
<input
class="demo placeholder-shown:border-dashed placeholder-shown:border-2"
placeholder="Project title"
aria-label="Project title"
/>
Placeholder shown outline with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<input
class="demo placeholder-shown:border-dashed placeholder-shown:border-2"
placeholder="Project title"
aria-label="Project title"
/>