Open this example in the interactive library
Source code
<input
class="demo file:bg-teal-100 file:border-0 file:p-2 file:mr-2"
type="file"
aria-label="Attachment"
/>
Style the file picker button with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<input
class="demo file:bg-teal-100 file:border-0 file:p-2 file:mr-2"
type="file"
aria-label="Attachment"
/>