mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
feat(file-uploader): make labelTitle
, labelDescription
slottable (#1780)
This commit is contained in:
parent
7ef8b73252
commit
239f1b10e5
4 changed files with 64 additions and 36 deletions
18
types/FileUploader/FileUploader.svelte.d.ts
vendored
18
types/FileUploader/FileUploader.svelte.d.ts
vendored
|
@ -35,17 +35,19 @@ export interface FileUploaderProps extends RestProps {
|
|||
multiple?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the label description
|
||||
* @default ""
|
||||
*/
|
||||
labelDescription?: string;
|
||||
|
||||
/**
|
||||
* Specify the label title
|
||||
* Specify the label title.
|
||||
* Alternatively, use the named slot "labelTitle" (e.g., `<span slot="labelTitle">...</span>`)
|
||||
* @default ""
|
||||
*/
|
||||
labelTitle?: string;
|
||||
|
||||
/**
|
||||
* Specify the label description.
|
||||
* Alternatively, use the named slot "labelDescription" (e.g., `<span slot="labelDescription">...</span>`)
|
||||
* @default ""
|
||||
*/
|
||||
labelDescription?: string;
|
||||
|
||||
/**
|
||||
* Specify the kind of file uploader button
|
||||
* @default "primary"
|
||||
|
@ -85,7 +87,7 @@ export default class FileUploader extends SvelteComponentTyped<
|
|||
mouseleave: WindowEventMap["mouseleave"];
|
||||
keydown: WindowEventMap["keydown"];
|
||||
},
|
||||
{}
|
||||
{ labelDescription: {}; labelTitle: {} }
|
||||
> {
|
||||
/**
|
||||
* Programmatically clear the uploaded files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue