UNPKG

@wix/design-system

Version:

@wix/design-system

41 lines (38 loc) 1.23 kB
### dataHook - type: string - description: Applies a data-hook HTML attribute that can be used in tests. ### header - type: ReactNode - description: Allows to insert overline text at the top left of a component. Can also be overridden with any other component, i.e. <Image/>. ### onChange - type: (file: File) => void - description: Defines a standard input onChange callback. ### mainLabel - type: string - description: Sets the main action label. - default: 'Choose File' ### subLabel - type: string - description: Adds a supportive message below the action title. - default: 'No file chosen (Max size 5 MB)' ### supportedFormats - type: string - description: Defines which file types to accept (i.e. .jpeg, .gif, .png). Formats should be separated by a comma. - default: '*' ### maxSize - type: number - description: Defines the maximum size of a file that can be uploaded. - default: 5000000 ### error - type: boolean - description: Defines if an error should show or not. ### errorMessage - type: string - description: Sets an error message to display. - default: '' ### id - type: string | number - description: Specifies a unique id for the element. ### name - type: string - description: Defines a name for inner input.