@wix/design-system
Version:
@wix/design-system
37 lines (33 loc) • 1.09 kB
Markdown
### dataHook
- type: string
- description: Applies a data-hook HTML attribute that can be used in tests.
### error
- type: bool
- description: Defines if an error should show or not.
### errorMessage
- type: string
- description: Sets an error message to display.
### header
- type: union
- description: Allows to insert overline text at the top left of a component. Can also be overridden with any other component, i.e. <Image/>.
### id
- type: union
- description: Specifies a unique id for the element.
### mainLabel
- type: string
- description: Sets the main action label.
### maxSize
- type: number
- description: Defines the maximum size of a file that can be uploaded.
### name
- type: string
- description: Defines a name for inner input.
### onChange
- type: func
- description: Defines a standard input onChange callback.
### subLabel
- type: string
- description: Adds a supportive message below the action title.
### supportedFormats
- type: string
- description: Defines which file types to accept (i.e. .jpeg, .gif, .png). Formats should be separated by a comma.