The file
element is a simple interactive label that wraps an
<input type="file">
. It comprises several sub-elements:
-
file
the main container-
file-label
the actual interactive and clickable part of the elementfile-input
the native file input, hidden for styling purposes-
file-cta
the upload call-to-actionfile-icon
an optional upload iconfile-label
the "Choose a file…" text
file-name
a container for the chosen file name
-