Skip to content

Commit

Permalink
docs(Upload): add id property (#4401)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz authored Dec 13, 2024
1 parent ee948ed commit 56d4956
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/dnb-eufemia/src/components/upload/UploadDocs.ts
Original file line number Diff line number Diff line change
@@ -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<string>', 'Array<AcceptedFileType>'],
Expand Down

0 comments on commit 56d4956

Please sign in to comment.