File size: 1,077 Bytes
0ad74ed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# `@gradio/file`
```html
<script>
import { BaseFile, BaseFileUpload, FilePreview, BaseExample } from "@gradio/file";
</script>
```
BaseFile
```javascript
export let value: FileData | FileData[] | null = null;
export let label: string;
export let show_label = true;
export let selectable = false;
export let height: number | undefined = undefined;
export let i18n: I18nFormatter;
```
BaseFileUpload
```javascript
export let value: null | FileData | FileData[];
export let label: string;
export let show_label = true;
export let file_count = "single";
export let file_types: string[] | null = null;
export let selectable = false;
export let root: string;
export let height: number | undefined = undefined;
export let i18n: I18nFormatter;
```
FilePreview
```javascript
export let value: FileData | FileData[];
export let selectable = false;
export let height: number | undefined = undefined;
export let i18n: I18nFormatter;
```
BaseExample
```javascript
export let value: FileData;
export let type: "gallery" | "table";
export let selected = false;
``` |