From 59999cd02fbe3d4af96ef8c63400450079ab7390 Mon Sep 17 00:00:00 2001 From: -l Date: Fri, 13 Dec 2024 11:37:32 +0100 Subject: [PATCH] docs(Upload): document id property --- packages/dnb-eufemia/src/components/upload/UploadDocs.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/dnb-eufemia/src/components/upload/UploadDocs.ts b/packages/dnb-eufemia/src/components/upload/UploadDocs.ts index d4c71fa8cf5..1300608d39c 100644 --- a/packages/dnb-eufemia/src/components/upload/UploadDocs.ts +++ b/packages/dnb-eufemia/src/components/upload/UploadDocs.ts @@ -1,6 +1,11 @@ import { PropertiesTableProps } from '../../shared/types' export const UploadProperties: PropertiesTableProps = { + id: { + doc: 'Unique id used with the useUpload hook to manage the files.', + type: 'string', + status: 'required', + }, acceptedFileTypes: { doc: 'List of accepted file types. Either as string or [AcceptedFileType](/uilib/components/upload/properties/#acceptedfiletype). When providing a list of [AcceptedFileType](/uilib/components/upload/properties/#acceptedfiletype), the accepted file types will be presented in a table(see [example](/uilib/components/upload/demos/#upload-with-file-max-size-based-on-file-type)).', type: ['Array', 'Array'],