···11# Changelog
2233+## Next
44+- Add `name` property
55+36## 0.2.1 - 2022 Nov 18
47- Add `role` and `aria-label` accessibility attributes
58
+1
README.md
···3838| `acceptedMimes` | string[] \| null | List of allowed mime types, like `image/jpeg` or `image/*`. Invalid files are ignored.<br>Defaults to `null` (all are allowed) |
3939| `max` | number \| null | Max number of files allowed. Extra files are ignored. Defaults to 0 (no limit) |
4040| `disabled` | boolean | Disables the component |
4141+| `name` | string \| null | Name of the input field, useful for forms |
4142| `tabindex` | number | Set a custom tabindex |
42434344## Slot props
+6
src/lib/FileDrop.svelte
···2525 export let disabled = false
26262727 /**
2828+ * Name of the input field, useful for forms
2929+ */
3030+ export let name: string | null | undefined = undefined
3131+3232+ /**
2833 * Set a custom tabindex
2934 */
3035 export let tabindex = 0
···134139 on:change|preventDefault={handleChange}
135140 bind:this={input}
136141 {disabled}
142142+ {name}
137143/>
138144139145<style lang="sass">