Skip to content

Commit

Permalink
Merge pull request #8514 from marmelab/fix-ImageInput-accept-examples
Browse files Browse the repository at this point in the history
[Doc] Fix `<ImageInput>` `accept` prop examples
  • Loading branch information
fzaninotto authored Dec 16, 2022
2 parents fa5efda + cbb1d15 commit bdff90e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ImageInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and

## `accept`

Equivalent of [the `accept` attribute of an `<input type="file">`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept). `accept` must be a valid [MIME type](https://www.iana.org/assignments/media-types/media-types.xhtml), according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension.
Equivalent of [the `accept` attribute of an `<input type="file">`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept). `accept` must be a valid [MIME type](https://www.iana.org/assignments/media-types/media-types.xhtml), according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file).

```jsx
<ImageInput source="pictures" accept="image/*">
Expand All @@ -76,7 +76,7 @@ Equivalent of [the `accept` attribute of an `<input type="file">`](https://devel

Examples of valid `accept` values:

- '.png,.gif,.jpg,.jpeg'
- 'image/png,image/svg+xml,image/jpg,image/jpeg'
- 'image/*'

If left empty, all file types are accepted (even non-image types).
Expand Down

0 comments on commit bdff90e

Please sign in to comment.