Vuetify

상점

기업

The v-file-input component is a specialized input that provides a clean interface for selecting files, showing detailed selection information and upload progress. It is meant to be a direct replacement for a standard file input.

At its core, the v-file-input component is a basic container that extends v-text-field.

Options

제공되는 Props, Slots, Events 와 함수들을 이용하여 원하는 컴포넌트를 직접 구현해 보세요.

간단한 예재부터 복잡한 예제까지 아래를 참고해서 앱 개발을 시작해 보세요.

The v-file-input can contain multiple files at the same time when using the multiple prop.

v-file-input component can accept only specific media formats/file types if you want. For more information, checkout the documentation on the accept attribute.

A selected file can be displayed as a chip. When using the chips and multiple props, each chip will be displayed (as opposed to the file count).

The displayed size of the selected file(s) can be configured with the show-size property. Display sizes can be either 1024 (the default used when providing true) or 1000.

When using the show-size property along with counter, the total number of files and size will be displayed under the input.

The v-file-input has a default prepended icon that can be set on the component or adjusted globally. More information on changing global components can be found on the customizing icons page.

You can reduces the file input height with dense prop.

Using the selection slot, you can customize the appearance of your input selections. This is typically done with chips, however any component or markup can be used.

Similar to other inputs, you can use the rules prop to can create your own custom validation parameters.

The flexibility of the selection slot allows you accomodate complex use-cases. In this example we show the first 2 selections as chips while adding a number indicator for the remaining amount.

더 읽을 준비 되었나요? 그렇다면 아래 설명서를 더 읽어보세요!

Caught a mistake or want to contribute to the documentation? Edit Layout on GitHub!