mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
feat(file-uploader): add size
prop to FileUploaderButton
(#1786)
This commit is contained in:
parent
709322c281
commit
51c281de4a
8 changed files with 70 additions and 5 deletions
|
@ -55,6 +55,12 @@
|
|||
*/
|
||||
export let kind = "primary";
|
||||
|
||||
/**
|
||||
* Specify the size of the file uploader button
|
||||
* @type {import("../Button/Button.svelte").ButtonProps["size"]}
|
||||
*/
|
||||
export let size = "small";
|
||||
|
||||
/** Specify the button label */
|
||||
export let buttonLabel = "";
|
||||
|
||||
|
@ -137,6 +143,7 @@
|
|||
name="{name}"
|
||||
multiple="{multiple}"
|
||||
kind="{kind}"
|
||||
size="{size}"
|
||||
on:change
|
||||
on:change="{(e) => {
|
||||
files = e.detail;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue