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