Open this example in the interactive library
Source code
<input
class="demo focus:bg-blue-100"
aria-label="Focus example"
value="Click or tab into the field"
/>
Style focus independently of keyboard modality with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<input
class="demo focus:bg-blue-100"
aria-label="Focus example"
value="Click or tab into the field"
/>