File Upload
Drag-and-drop file upload zone with click-to-browse.
<reke-file-upload accept=".csv,.xlsx" hint="Max 10MB"></reke-file-upload><reke-file-upload compact accept="image/*"></reke-file-upload>Properties
Section titled “Properties”| Property | Type | Default | Description |
|---|---|---|---|
accept | string | '' | Accepted file types |
hint | string | '' | Helper text below the dropzone |
disabled | boolean | false | Disables the upload |
error | boolean | false | Error state |
errorMessage | string | '' | Error message text |
compact | boolean | false | Compact mode |
Events
Section titled “Events”| Event | Detail | Description |
|---|---|---|
reke-file-select | { file: File } | Fired when a file is selected |
reke-file-clear | {} | Fired when file is cleared |
Methods
Section titled “Methods”| Method | Description |
|---|---|
clear() | Clears the selected file |
CSS Parts
Section titled “CSS Parts”| Part | Description |
|---|---|
dropzone | The drop area |