@lion/ui
Version:
A package of extendable web components
45 lines (35 loc) • 923 B
Markdown
title: 'Input File: Overview'
parts:
- Input File
- Overview
eleventyNavigation:
key: 'Input File: Overview'
order: 10
parent: Input File
title: Overview
# Input File: Overview
A web component based on the file input field.
```js script
import { html } from '@mdjs/mdjs-preview';
import '@lion/ui/define/lion-input-file.js';
```
```js preview-story
export const main = () => {
return html` <lion-input-file label="Upload" name="upload"></lion-input-file> `;
};
```
## Features
- Based on our [input](https://github.com/ing-bank/lion/blob/b7d7ffac177a6f66a52281c47d969558fa66edf8/docs/components/input/overview.md)
- Default labels and validation messages in different languages
- Options for multi file upload and drop-zone.
## Installation
```bash
npm i --save @lion/ui
```
```js
import { LionInputFile } from '@lion/ui/input-file.js';
// or
import '@lion/ui/define/lion-input-file.js';
```