Dev Helpers
← Back

Style the file picker button

Style the file picker button with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo::file-selector-button {
    background-color: #ccfbf1;
    border: 0;
    padding: 0.5rem;
    margin-right: 0.5rem;
  }
</style>
<input class="demo" type="file" aria-label="Attachment" />