mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(types): correctly type kind
prop in FileUploader
, FileUploaderButton
(#1781)
This commit is contained in:
parent
65dcd9c286
commit
a7443c2dca
7 changed files with 36 additions and 34 deletions
|
@ -20,6 +20,7 @@
|
|||
</script>
|
||||
|
||||
<FileUploaderButton
|
||||
kind="tertiary"
|
||||
labelText="Add files"
|
||||
on:change="{(e) => {
|
||||
console.log(e.detail); // File[]
|
||||
|
@ -27,6 +28,7 @@
|
|||
/>
|
||||
|
||||
<FileUploader
|
||||
kind="danger-ghost"
|
||||
bind:this="{fileUploader}"
|
||||
multiple
|
||||
labelTitle="Upload files"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue