@wix/design-system
Version:
@wix/design-system
46 lines (26 loc) • 801 B
Markdown
## Feature Examples
### Structure
- description: File upload consists of two labels: `mainLabel` for action text and `subLabel` for a description.
- example:
```jsx
```
### Supported formats
- description: Define file types that could be uploaded with the `supportedFormats` prop. Separate formats with a comma.
- example:
```jsx
```
### Max size
- description: Define the maximum file size for an upload with the `maxSize` prop.
- example:
```jsx
```
### Error message
- description: Describe an error status by using the `errorMessage` prop. Messages will only be revealed when the `error` status is `true`.
- example:
```jsx
```
### Header
- description: Add text or any other component in an area above the component using the `header` prop.
- example:
```jsx
```