0.6.3 • Published 4 years ago

@vcl/file-input v0.6.3

Weekly downloads
5
License
MIT
Repository
-
Last release
4 years ago

VCL file-input

File input for selecting one or multiple files via tap and drag-and-drop gestures.

Features

A dragged-over sensitive input control that is typically used in drag-and-drop scenarios such as file upload inputs. At the same time it can be focused and and the main action triggered with the same gestures like applicable to a button.

Modifiers for the following available states: dragndrop, busy, error, warning, success, focused, disabled.

Usage

basic example

Sizing

The same properties as for the the input module apply. The difference is that the default height is higher to serve as a proper drop target.

Validation

The validation state of an file input can be visualized by the standard modifiers vclError, vclWarning and vclSuccess.

validation-state example

Focused State

focused-state example

Disabled State

disabled-state example

Drag-N-Drop State

dragndrop-state example

Classes

  • vclFileInput

Modifiers

  • vclFocused
  • vclDisabled
  • vclError
  • vclWarning
  • vclSuccess
  • vclDragndrop: When the input is hovered with a pointer dragging a file(s).
  • vclBusy: When an upload is in progress.

Variables

  • --file-input-color
  • --file-input-bg-color
  • --file-input-border-width
  • --file-input-border-color
  • --file-input-border-radius
  • --file-input-border-focus-color
  • --file-input-bg-focus-color
  • --file-input-disabled-color
  • --file-input-disabled-border-color
  • --file-input-disabled-bg-color
  • --file-input-dragndrop-color
  • --file-input-dragndrop-border-color
  • --file-input-dragndrop-bg-color

Demo

example.html on GH-pages.

1.0.0-alpha.2

4 years ago

0.7.0-alpha.3

4 years ago

0.7.0-alpha.1

4 years ago

0.6.3

4 years ago

0.6.2

5 years ago

0.6.1

5 years ago

0.6.0-6

5 years ago

0.6.0-5

5 years ago

0.6.0-1

5 years ago

0.5.3

5 years ago

0.4.6

5 years ago

0.4.5

5 years ago

0.4.2

5 years ago

0.4.0

5 years ago

0.4.0-beta.3

5 years ago

0.4.0-beta.1

5 years ago

0.4.0-beta.0

5 years ago

0.4.0-0

5 years ago

0.3.0-0

5 years ago

0.3.0-2

5 years ago

0.3.0

5 years ago

0.2.3

5 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

7 years ago