Input File

Ripple UI comes with a set of input file components that can be used to capture any types of files from the user.

Default

Simple example of Input File.

HTML
JSX
<input type="file" class="input-file" />

Colors

Input File colors

HTML
JSX
<input type="file" class="input-file input-file-primary" />
<input type="file" class="input-file input-file-secondary" />
<input type="file" class="input-file input-file-success" />
<input type="file" class="input-file input-file-error" />
<input type="file" class="input-file input-file-warning" />

Sizes

Input sizes

HTML
JSX
<input type="file" class="input-file input-file-xs" />
<input type="file" class="input-file input-file-sm" />
<input type="file" class="input-file input-file-md" />
<input type="file" class="input-file input-file-lg" />
<input type="file" class="input-file input-file-xl" />

Custom

You can customize the input file component by using the following structure.

HTML
JSX
<input type="file" class="input-file file:bg-pink-600 border-pink-500 file:text-white" />

API

classDescription
input-fileInput File class
input-file-primaryInput File with primary color
input-file-secondaryInput File with secondary color
input-file-successInput File with success color
input-file-errorInput File with error color
input-file-warningInput File with warning color
input-file-xsInput File with extra small size
input-file-smInput File with small size
input-file-mdInput File with medium size
input-file-lgInput File with large size
input-file-xlInput File with extra large size